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 19:08:38 +01:00

20 lines
342 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 ./ .
COPY .env ./
COPY ./templates ./templates/
COPY ./assets ./assets/
CMD ./server