Interactive/Dockerfile

16 lines
300 B
Docker
Raw Normal View History

2024-02-05 12:32:13 +00:00
# Building Backend
FROM golang:alpine as interactive-server
WORKDIR /source
COPY . .
2024-06-22 10:08:41 +00:00
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs -o /dist ./pkg/main.go
2024-02-05 12:32:13 +00:00
# Runtime
FROM golang:alpine
COPY --from=interactive-server /dist /interactive/server
EXPOSE 8445
2024-03-02 04:29:16 +00:00
CMD ["/interactive/server"]