1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-07-17 01:32:29 +02:00

installing ffmpeg with package manager for docker build

This commit is contained in:
Patrik J. Braun
2019-12-21 18:14:28 +01:00
parent 1863381b79
commit fb99df6157
8 changed files with 166 additions and 17 deletions

View File

@ -20,8 +20,8 @@ WORKDIR /app
ENTRYPOINT ["npm", "start"]
EXPOSE 80
ENV NODE_ENV=production
COPY --from=builder /build /app
RUN apk add ffmpeg
COPY --from=builder /build /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 \

View File

@ -19,6 +19,7 @@ WORKDIR /app
ENTRYPOINT ["npm", "start"]
EXPOSE 80
ENV NODE_ENV=production
RUN apt-get update && apt-get install -y ffmpeg
COPY --from=builder /build /app
RUN ln -s /app/data/config/config.json config.json
VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]