mirror of
https://github.com/ThisTine/simple-http-server.git
synced 2026-08-18 23:18:48 +07:00
INIT
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
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" ]
|
||||
Reference in New Issue
Block a user