fix: install graphicsmagick in runtime stage
Build + push avatar image / build-and-push (push) Failing after 17s
Build + push avatar image / build-and-push (push) Failing after 17s
gm npm wrapper shells out to the gm/convert binary on every avatar upload; the builder stage had it but the final runtime stage did not, so every upload 500'd with 'gm convert binaries can't be found'.
This commit is contained in:
+4
-1
@@ -20,7 +20,10 @@ COPY 404.html /var/www/localhost/htdocs/404.html
|
||||
RUN mkdir /var/opt/out
|
||||
|
||||
FROM alpine:3.23.4
|
||||
RUN apk update && apk upgrade && apk add --no-cache nodejs yarn nginx nginx-mod-http-headers-more && rm -rf /var/cache/apk/*
|
||||
# graphicsmagick is required at runtime too — the gm npm wrapper shells out to the
|
||||
# `gm`/`convert` binary on every upload; the builder stage has it, but the runtime
|
||||
# stage does not unless we add it here.
|
||||
RUN apk update && apk upgrade && apk add --no-cache nodejs yarn nginx nginx-mod-http-headers-more graphicsmagick && rm -rf /var/cache/apk/*
|
||||
|
||||
COPY --from=builder /usr/share/vnc-avatar /usr/share/vnc-avatar
|
||||
COPY --from=builder /var/opt/out /var/opt/out
|
||||
|
||||
Reference in New Issue
Block a user