This repository has been archived on 2025-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
shop/Dockerfile
2023-11-10 15:57:52 +01:00

17 lines
278 B
Docker

FROM ubuntu:latest
LABEL authors="Damian"
FROM golang:alpine AS GO_BUILD
COPY ./ /server
WORKDIR /server
ADD go.mod .
ADD go.sum .
RUN go mod download
RUN go build -o /go/bin/server
FROM alpine:3.15
WORKDIR app
COPY --from=GO_BUILD /go/bin/server ./
COPY .env ./
CMD ./server