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 b8880c417d Typo fixed
2022-02-03 14:22:10 +01:00

24 lines
464 B
Docker

FROM node:17 AS ANGULAR_BUILD
ARG MODE
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=$MODE
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