Dockerfile Added port changed

This commit is contained in:
Husky
2022-01-04 20:31:20 +01:00
parent 8c814daf48
commit 65e884e3cb
2 changed files with 18 additions and 1 deletions

17
Dockerfile Normal file
View 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

View File

@@ -34,7 +34,7 @@ func main() {
r.DELETE("/besucher/:id", handlers.DeleteBesucherHandler)
r.PUT("/besucher", handlers.ComeBesucherHandler)
err := r.Run(":3000")
err := r.Run(":3001")
if err != nil {
panic(err)
}