2023-01-27 15:23:22 +00:00
|
|
|
FROM golang:alpine3.17 AS build
|
|
|
|
WORKDIR /build
|
|
|
|
COPY ./src ./src
|
|
|
|
WORKDIR /build/src
|
|
|
|
RUN ls
|
|
|
|
RUN go get .
|
|
|
|
RUN go build -o /build/static-hoster
|
|
|
|
|
|
|
|
FROM alpine:3.17 AS final
|
|
|
|
COPY --from=build /build/static-hoster /bin/static-hoster
|
2023-01-29 18:24:15 +00:00
|
|
|
COPY /dev/docker/images/production/html /usr/share/static-hoster/html
|
2023-01-27 15:23:22 +00:00
|
|
|
CMD static-hoster
|