Dockerfile.build
This commit is contained in:
parent
cec031d9ef
commit
5db8f0a94d
@ -21,7 +21,7 @@ ENTRYPOINT ["npm", "start"]
|
|||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN apk add ffmpeg
|
RUN apk add ffmpeg
|
||||||
COPY --from=builder /build /app
|
COPY --from=builder /app /app
|
||||||
RUN ln -s /app/data/config/config.json config.json
|
RUN ln -s /app/data/config/config.json config.json
|
||||||
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --retries=4 --start-period=60s \
|
HEALTHCHECK --interval=30s --timeout=10s --retries=4 --start-period=60s \
|
||||||
|
|||||||
@ -20,7 +20,7 @@ ENTRYPOINT ["npm", "start"]
|
|||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
RUN apt-get update && apt-get install -y ffmpeg
|
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
|
RUN ln -s /app/data/config/config.json config.json
|
||||||
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
||||||
HEALTHCHECK --interval=30s --timeout=10s --retries=4 --start-period=60s \
|
HEALTHCHECK --interval=30s --timeout=10s --retries=4 --start-period=60s \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user