-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (15 loc) · 557 Bytes
/
Dockerfile
File metadata and controls
24 lines (15 loc) · 557 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:alpine3.12 AS build
RUN apk add git && \
git clone https://github.com/CodeMyst/pastemyst-autodetect.git /src
WORKDIR /src
RUN go build -o /usr/bin/pastemyst-autodetect .
FROM dlang2/dmd-ubuntu:2.096.1
COPY --from=build /usr/bin/pastemyst-autodetect /usr/bin/
RUN apt-get update && \
apt-get install -y libssl-dev libscrypt-dev patch git
WORKDIR /app
RUN apt-get clean autoclean && \
apt-get autoremove --yes && \
rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN git config --global --add safe.directory /app
ENTRYPOINT dub run