Files
simple-http-server/Dockerfile
T
2023-01-25 11:07:32 +07:00

19 lines
258 B
Docker

FROM golang:alpine as builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
FROM alpine
WORKDIR /app
COPY ./static ./static
COPY --from=builder /app/serviceapifrontend .
EXPOSE 4000
ENTRYPOINT [ "/app/serviceapifrontend" ]