概要
AtCoderの開発環境を整えてみたので、その時の備忘録。
環境
- Mac
- Docker:20.10.0
実行
フォルダ構成
. ├── aoj │ └── dockerfile ├── docker-compose.yaml └── src ├── main └── main.cpp
各ファイルの中身
docker-compose.ymal
version: "3" services: atcoder: container_name: atcoder build: './aoj' tty: true compiler: image: gcc:12.2.0 volumes: - ./src:/src working_dir: /src command: g++ main.cpp -o main
aoj/dockerfile
FROM python:3.6-slim AS OJ RUN pip3 install online-judge-tools FROM node:20-bullseye-slim COPY --from=OJ / / RUN npm install -g npm atcoder-cli