docker build minify CSS
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
fb2e8ff85f
commit
636a5de124
@ -4,9 +4,9 @@ WORKDIR /go/src/meutel.net/meutel/go-bouquins
|
|||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
RUN go get .
|
RUN GO111MODULE=on go get .
|
||||||
|
RUN GO111MODULE=on CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o app .
|
||||||
RUN CGO_ENABLED=1 GOOS=linux go build -a -installsuffix cgo -o app .
|
RUN curl -X POST -s --data-urlencode 'input@assets/css/bouquins.css' https://cssminifier.com/raw > assets/css/bouquins.min.css
|
||||||
|
|
||||||
# deployment image
|
# deployment image
|
||||||
FROM debian:stable-slim
|
FROM debian:stable-slim
|
||||||
@ -17,7 +17,7 @@ WORKDIR /root/
|
|||||||
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install ca-certificates && update-ca-certificates -f
|
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -y install ca-certificates && update-ca-certificates -f
|
||||||
COPY --from=builder /go/src/meutel.net/meutel/go-bouquins/app .
|
COPY --from=builder /go/src/meutel.net/meutel/go-bouquins/app .
|
||||||
COPY templates/ ./templates/
|
COPY templates/ ./templates/
|
||||||
COPY assets/ ./assets/
|
COPY --from=builder /go/src/meutel.net/meutel/go-bouquins/assets/ ./assets/
|
||||||
|
|
||||||
CMD [ "./app" ]
|
CMD [ "./app" ]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user