mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Dockerfile.build
This commit is contained in:
parent
cec031d9ef
commit
5db8f0a94d
@ -21,7 +21,7 @@ ENTRYPOINT ["npm", "start"]
|
||||
EXPOSE 80
|
||||
ENV NODE_ENV=production
|
||||
RUN apk add ffmpeg
|
||||
COPY --from=builder /build /app
|
||||
COPY --from=builder /app /app
|
||||
RUN ln -s /app/data/config/config.json config.json
|
||||
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
||||
HEALTHCHECK --interval=30s --timeout=10s --retries=4 --start-period=60s \
|
||||
|
@ -20,7 +20,7 @@ ENTRYPOINT ["npm", "start"]
|
||||
EXPOSE 80
|
||||
ENV NODE_ENV=production
|
||||
RUN apt-get update && apt-get install -y ffmpeg
|
||||
COPY --from=builder /build /app
|
||||
COPY --from=builder /app /app
|
||||
RUN ln -s /app/data/config/config.json config.json
|
||||
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
||||
HEALTHCHECK --interval=30s --timeout=10s --retries=4 --start-period=60s \
|
||||
|
Loading…
Reference in New Issue
Block a user