12 lines
312 B
Docker
12 lines
312 B
Docker
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
|
|
COPY /dev/docker/images/production/html /usr/share/static-hoster/html
|
|
CMD static-hoster |