Create dockerfile

This commit is contained in:
Sebastiaan de Schaetzen 2025-02-07 08:33:54 +01:00
parent 6211858b07
commit b47989a0f2

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM mcr.microsoft.com/playwright:v1.50.1-noble
RUN apt-get update &&\
apt-get install -y golang-1.23-go &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/*
ENV PATH="/usr/lib/go-1.23/bin/:$PATH"
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY migrations ./migrations
COPY *.go ./
RUN go build -o /vivaplusdl
CMD ["/vivaplusdl"]