From 71fc1ef03499536c1052065d6af141a99fcd45f1 Mon Sep 17 00:00:00 2001 From: Andrea Fazzi Date: Wed, 3 Nov 2021 09:33:07 +0100 Subject: [PATCH] Add Dockerfile for the backend --- backend/Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 backend/Dockerfile diff --git a/backend/Dockerfile b/backend/Dockerfile new file mode 100644 index 0000000..090d986 --- /dev/null +++ b/backend/Dockerfile @@ -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