2024-02-05 12:32:13 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
|
# Runtime
|
|
|
|
FROM golang:alpine
|
|
|
|
|
|
|
|
COPY --from=interactive-server /dist /interactive/server
|
|
|
|
|
|
|
|
EXPOSE 8445
|
|
|
|
|
2024-03-02 04:29:16 +00:00
|
|
|
CMD ["/interactive/server"]
|