File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change 3
3
/lib
4
4
/.git
5
5
/Dockerfile
6
+ /Dockerfile.NOROOTFS
Original file line number Diff line number Diff line change
1
+ FROM node:10-buster
2
+
3
+ # Install OS dependencies
4
+ RUN apt-get update && \
5
+ apt-get install -y python3 build-essential libboost-all-dev
6
+
7
+ WORKDIR /app
8
+
9
+ # Install NPM dependencies
10
+ COPY package.json yarn.lock ./
11
+ RUN yarn --frozen-lockfile
12
+
13
+ # Copy code and build
14
+ COPY . .
15
+ RUN yarn build
16
+
17
+ ENV NODE_ENV=production \
18
+ SYZOJ_JUDGE_RUNNER_INSTANCE=runner \
19
+ SYZOJ_JUDGE_SANDBOX_ROOTFS_PATH=/rootfs \
20
+ SYZOJ_JUDGE_WORKING_DIRECTORY=/tmp/working \
21
+ SYZOJ_JUDGE_BINARY_DIRECTORY=/tmp/binary \
22
+ SYZOJ_JUDGE_TESTDATA_PATH=/app/testdata \
23
+ SYZOJ_JUDGE_DO_NOT_USE_X32_ABI=true
24
+
25
+ VOLUME ["/app/config", "/app/testdata", "/rootfs"]
26
+
27
+ COPY ./docker-entrypoint.sh /
28
+ ENTRYPOINT ["/docker-entrypoint.sh"]
29
+ CMD ["daemon"]
You can’t perform that action at this time.
0 commit comments