Dockerfile Added port changed
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@@ -0,0 +1,17 @@
|
||||
FROM node:17 AS ANGULAR_BUILD
|
||||
RUN npm install -g @angular/cli
|
||||
COPY ui /ui
|
||||
WORKDIR ui
|
||||
RUN npm install && ng build --prod
|
||||
|
||||
|
||||
FROM golang:1.17.5 AS GO_BUILD
|
||||
COPY ./ /server
|
||||
WORKDIR /server
|
||||
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 /app/server
|
||||
Reference in New Issue
Block a user