summaryrefslogtreecommitdiff
path: root/vendor/github.com/tdewolff/minify/v2/Dockerfile
blob: af9fdd754be5c2cfd0f1b53330dba135f931e7d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Use this image to build the executable
FROM golang:1.24-alpine AS build

WORKDIR /go/src/github.com/tdewolff/minify
COPY . /go/src/github.com/tdewolff/minify/

RUN apk add --no-cache git ca-certificates make bash
RUN /usr/bin/env bash -c make install


# Final image containing the executable from the previous step
FROM alpine:3

COPY --from=build /go/bin/minify /usr/bin/minify
COPY "containerfiles/container-entrypoint.sh" "/init.sh"

ENTRYPOINT ["/init.sh"]