mirror of
https://github.com/ThisTine/simple-http-server.git
synced 2026-08-18 23:18:48 +07:00
19 lines
326 B
Docker
19 lines
326 B
Docker
FROM --platform=linux/amd64 golang:alpine as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o serviceapifrontend
|
|
|
|
FROM --platform=linux/amd64 alpine
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./static ./static
|
|
|
|
COPY --from=builder /app/serviceapifrontend .
|
|
|
|
EXPOSE 4000
|
|
|
|
ENTRYPOINT [ "/app/serviceapifrontend" ] |