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
Hochzeit/Dockerfile
2022-02-03 14:13:31 +01:00

23 lines
460 B
Docker

FROM node:17 AS ANGULAR_BUILD
RUN npm install -g npm@8.4.0
RUN npm install -g @angular/cli
COPY ui /ui
WORKDIR ui
RUN npm install && ng build --configuration=production
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=ANGULAR_BUILD /ui/dist/ui/* ./ui/dist/ui/
COPY --from=GO_BUILD /go/bin/server ./
COPY .env ./
CMD ./server