-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
48 lines (38 loc) · 1.66 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build-dot-net-checkers
WORKDIR /app
COPY checkers/smallword/src/ /app/
RUN dotnet publish -c release -o ./smallword-publish
FROM ghcr.io/hackerdom/ctf-scoreboard-client:master AS scoreboard
FROM ghcr.io/hackerdom/checksystem:master
COPY --from=scoreboard /scoreboard/build /scoreboard
ENV CS_STATIC=/scoreboard
# Checker deps
RUN apt-get update && \
apt-get install -y --no-install-recommends \
python3 python3-pip software-properties-common && \
apt-add-repository non-free && \
apt-get update && \
apt-get install -y --no-install-recommends \
p7zip bzip2 gzip rar zip
RUN pip install patool requests beautifulsoup4
ENV DOTNET_CLI_TELEMETRY_OPTOUT=1
RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb && \
dpkg -i packages-microsoft-prod.deb && \
rm packages-microsoft-prod.deb && \
apt-get update && apt-get install -y dotnet-sdk-6.0
# Config
COPY cs/cs.conf /app/c_s.conf
# Checkers
COPY checkers/sh /app/checkers/sh
COPY checkers/crs /app/checkers/crs
COPY checkers/smallword /app/checkers/smallword
COPY checkers/mypack /app/checkers/mypack
COPY checkers/wallet /app/checkers/wallet
COPY checkers/n0tes /app/checkers/n0tes
RUN pip install -r /app/checkers/n0tes/requirements.txt
COPY checkers/kv /app/checkers/kv
COPY checkers/obscurity /app/checkers/obscurity
COPY --from=build-dot-net-checkers /app/smallword-publish/ /app/checkers/smallword/src/bin/Release/net6.0/publish
COPY checkers/linkextractor /app/checkers/linkextractor
COPY checkers/issuecker /app/checkers/issuecker
RUN pip install -r /app/checkers/issuecker/requirements.txt