Containerfile fix for new path to main
This commit is contained in:
parent
8c8e57cb50
commit
07b9f6fca4
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ ADD backend .
|
||||||
RUN make migrate
|
RUN make migrate
|
||||||
|
|
||||||
# RUN go build -o server
|
# RUN go build -o server
|
||||||
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o ./server ./cmd/
|
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o ./server ./main.go
|
||||||
|
|
||||||
# Strip the binary for a smaller image
|
# Strip the binary for a smaller image
|
||||||
RUN strip ./server
|
RUN strip ./server
|
||||||
|
@ -54,4 +54,4 @@ EXPOSE 8080
|
||||||
USER nonroot:nonroot
|
USER nonroot:nonroot
|
||||||
|
|
||||||
# Run the server
|
# Run the server
|
||||||
CMD ["./server"]
|
CMD ["./server"]
|
||||||
|
|
Loading…
Reference in a new issue