Skip to content

Commit

Permalink
#51: Building illustration util in prod image
Browse files Browse the repository at this point in the history
  • Loading branch information
dooman87 committed Jul 28, 2024
1 parent c1adc8b commit 13d03f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ RUN git clone https://github.com/Pixboost/transformimgs.git

WORKDIR /go/src/github.com/Pixboost/transformimgs/illustration

RUN go install
RUN go build -o /illustration

WORKDIR /go/src/github.com/Pixboost/transformimgs/cmd

Expand All @@ -122,6 +122,7 @@ FROM dpokidov/imagemagick:7.1.1-31-2-bookworm
ENV IM_HOME /usr/local/bin

USER 65534
COPY --from=build --chown=nobody:nogroup /illustration /usr/local/bin/illustration
COPY --from=build --chown=nobody:nogroup /transformimgs /transformimgs

ENTRYPOINT ["/transformimgs", "-imConvert=/usr/local/bin/convert", "-imIdentify=/usr/local/bin/identify"]

0 comments on commit 13d03f9

Please sign in to comment.