woj-server/resource/runner/scripts/debian-full.Dockerfile

21 lines
775 B
Docker
Raw Permalink Normal View History

2024-03-13 20:03:12 +08:00
FROM docker.io/library/debian:bookworm-slim
WORKDIR /woj
2024-03-14 01:18:16 +08:00
# RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list.d/debian.sources
# Install dependencies & languages: c/cpp/python3/pypy3/go/rust/nodejs
RUN apt-get update && apt-get upgrade -y \
2024-03-13 20:03:12 +08:00
&& apt-get install -y \
git parallel wget curl \
autoconf bison cmake flex gperf libnl-route-3-dev libprotobuf-dev libtool m4 make pkg-config protobuf-compiler \
2024-03-14 01:18:16 +08:00
gcc g++ clang python3 pypy3 golang-go rustc nodejs \
2024-03-13 20:03:12 +08:00
&& apt-get clean && rm -rf /var/lib/apt/lists
# Copy source code
RUN mkdir -p /woj/framework && mkdir -p /woj/problem
COPY framework /woj/framework
# Build
RUN cd /woj/framework/template && ./setup.sh
RUN cd /woj/framework/scripts && ./setup.sh