Create dockerfile
This commit is contained in:
parent
6211858b07
commit
b47989a0f2
18
Dockerfile
Normal file
18
Dockerfile
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user