mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
improving docker build
This commit is contained in:
parent
58aa4a720d
commit
6be6dbf676
@ -28,7 +28,7 @@ ENV NODE_ENV=production \
|
|||||||
ENTRYPOINT ["node", "./src/backend/index", \
|
ENTRYPOINT ["node", "./src/backend/index", \
|
||||||
# after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible
|
# after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible
|
||||||
"--expose-gc", \
|
"--expose-gc", \
|
||||||
"--config-path=$CONFIG_FILE"]
|
"--config-path=${CONFIG_FILE}"]
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
RUN apk add --update-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.11/community/ \
|
RUN apk add --update-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.11/community/ \
|
||||||
vips ffmpeg
|
vips ffmpeg
|
||||||
|
@ -26,7 +26,7 @@ ENV NODE_ENV=production \
|
|||||||
ENTRYPOINT ["node", "./src/backend/index", \
|
ENTRYPOINT ["node", "./src/backend/index", \
|
||||||
# after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible
|
# after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible
|
||||||
"--expose-gc", \
|
"--expose-gc", \
|
||||||
"--config-path=$CONFIG_FILE"]
|
"--config-path=${CONFIG_FILE}"]
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
RUN apt-get update && apt-get install -y ffmpeg
|
RUN apt-get update && apt-get install -y ffmpeg
|
||||||
COPY --from=builder /app /app
|
COPY --from=builder /app /app
|
||||||
|
Loading…
x
Reference in New Issue
Block a user