-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (22 loc) · 853 Bytes
/
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
FROM rust:1.44.1
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN apt-key fingerprint 0EBFCD88 \
&& apt-get update \
&& apt-get install -qq software-properties-common \
&& add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/debian \
$(lsb_release -cs) \
stable" \
&& apt-get update \
&& apt-get install -qq docker-ce-cli
# gather sources
COPY submission-system/src /submission-system/src
COPY ["submission-system/Cargo.*", "submission-system/repositories.ron", "/submission-system/"]
# prepare clean images
RUN git clone https://github.com/icfpcontest2020/dockerfiles.git /dockerfiles
# change to rust project dir
WORKDIR /submission-system
# build system
RUN cargo build --release
# start the submission system
ENTRYPOINT ["cargo", "run", "--release"]