Add Dockerfile for the backend

This commit is contained in:
Andrea Fazzi 2021-11-03 09:33:07 +01:00
parent 904e7c708d
commit 71fc1ef034

12
backend/Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM golang:latest
ENV PATH=$PATH:/src/yt-dls-backend/
RUN mkdir -p /src/yt-dls-backend
ADD . /src/yt-dls-backend
WORKDIR /src/yt-dls-backend
RUN go build -o yt-dls-backend *.go
ENTRYPOINT ["/src/yt-dls-backend/yt-dls-backend"]
EXPOSE 3000