wp-go/Dockerfile

9 lines
255 B
Docker
Raw Permalink Normal View History

2024-04-13 14:12:20 +00:00
FROM golang:1.22.2-alpine as gobulidIso
2022-11-05 09:00:20 +00:00
COPY ./ /go/src/wp-go
WORKDIR /go/src/wp-go
2023-11-25 09:49:20 +00:00
RUN go build -ldflags "-w" -tags netgo -o wp-go app/cmd/main.go
2022-11-05 09:00:20 +00:00
FROM alpine:latest
WORKDIR /opt/wp-go
2022-12-07 05:26:52 +00:00
COPY --from=gobulidIso /go/src/wp-go/wp-go ./
2022-11-05 09:00:20 +00:00
ENTRYPOINT ["./wp-go"]