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
HuskyTeufel 9614988135 Dockerfile changed
angularbuild updated npm
--prod parameter entfernt
2022-01-14 12:00:53 +01:00

22 lines
420 B
Docker

FROM node:17 AS ANGULAR_BUILD
RUN npm install -g npm@8.3.1
RUN npm install -g @angular/cli
COPY ui /ui
WORKDIR ui
RUN npm install && ng build
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 ./
CMD ./server