2023-11-24 22:42:05 +00:00
|
|
|
FROM golang:1.20-alpine
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
2023-12-02 22:41:47 +00:00
|
|
|
COPY go.mod index.html main.go ./
|
|
|
|
ADD assets ./assets/
|
2023-11-24 22:42:05 +00:00
|
|
|
RUN go mod download && go mod verify
|
|
|
|
|
|
|
|
RUN go build -v -o /usr/local/bin/app ./...
|
|
|
|
|
|
|
|
ENV PORT=8000
|
|
|
|
ENV BIND=0.0.0.0
|
|
|
|
|
|
|
|
CMD ["app"]
|