🐛 Fix dockerfile

This commit is contained in:
LittleSheep 2024-06-22 18:08:18 +08:00
parent 9366f6e56e
commit c8431281d7

View File

@ -1,11 +1,9 @@
# Building Backend
FROM golang:alpine as messaging-server
RUN apk add nodejs npm
WORKDIR /source
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs -o /dist ./pkg/cmd/main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs -o /dist ./pkg/main.go
# Runtime
FROM golang:alpine