mirror of
https://github.com/cuigh/swirl
synced 2024-12-27 22:32:49 +00:00
Fix docker build
This commit is contained in:
parent
6090e86fee
commit
24d8dfaced
11
Dockerfile
11
Dockerfile
@ -1,5 +1,6 @@
|
||||
FROM golang:alpine AS build
|
||||
WORKDIR /go/src/github.com/cuigh/swirl/
|
||||
RUN apk add git
|
||||
WORKDIR /go/src/swirl/
|
||||
ADD . .
|
||||
ENV GO111MODULE on
|
||||
RUN CGO_ENABLED=0 go build -ldflags "-s -w"
|
||||
@ -8,9 +9,9 @@ FROM alpine:3.8
|
||||
LABEL maintainer="cuigh <noname@live.com>"
|
||||
WORKDIR /app
|
||||
RUN apk add --no-cache ca-certificates
|
||||
COPY --from=build /go/src/github.com/cuigh/swirl/swirl .
|
||||
COPY --from=build /go/src/github.com/cuigh/swirl/config ./config/
|
||||
COPY --from=build /go/src/github.com/cuigh/swirl/assets ./assets/
|
||||
COPY --from=build /go/src/github.com/cuigh/swirl/views ./views/
|
||||
COPY --from=build /go/src/swirl/swirl .
|
||||
COPY --from=build /go/src/swirl/config ./config/
|
||||
COPY --from=build /go/src/swirl/assets ./assets/
|
||||
COPY --from=build /go/src/swirl/views ./views/
|
||||
EXPOSE 8001
|
||||
ENTRYPOINT ["/app/swirl"]
|
||||
|
Loading…
Reference in New Issue
Block a user