🐛 Fix dockerfile

This commit is contained in:
LittleSheep 2024-06-22 18:08:41 +08:00
parent c79c8d3618
commit dc86e33b9e

View File

@ -1,11 +1,9 @@
# Building Backend
FROM golang:alpine as interactive-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