Added Dockerfile

This commit is contained in:
2022-02-06 23:16:45 +01:00
parent 63638548ca
commit 2fdf52013f

27
Dockerfile Normal file
View File

@@ -0,0 +1,27 @@
FROM ubuntu:latest as build
WORKDIR /theadversary
COPY backend/ .
RUN apt update && \
apt -y install wget gcc
RUN wget -O- https://go.dev/dl/go1.17.6.linux-amd64.tar.gz | tar -C /usr/local/ -xzf - && \
ln -s /usr/local/go/bin/go /usr/bin/
RUN go build .
FROM ubuntu:latest
WORKDIR /theadversary
COPY frontend/ ./frontend/
COPY database.sqlite3 .
COPY .env .
COPY --from=build /theadversary/TheAdversary .
EXPOSE 8080
CMD ["./TheAdversary"]