Use entrypoint in dockerfiles

This commit is contained in:
Zoe Roux 2023-11-27 14:46:11 +01:00
parent 2b0f6837a8
commit 0e2950ab69
6 changed files with 6 additions and 7 deletions

View File

@ -27,4 +27,4 @@ WORKDIR /kyoo
EXPOSE 5000
# The back can take a long time to start if meilisearch is initializing
HEALTHCHECK --interval=5s --retries=15 CMD curl --fail http://localhost:5000/health || exit
CMD /app/Kyoo.Host
ENTRYPOINT ["/app/Kyoo.Host"]

View File

@ -20,5 +20,4 @@ EXPOSE 5000
ENV DOTNET_USE_POLLING_FILE_WATCHER 1
# HEALTHCHECK --interval=5s CMD curl --fail http://localhost:5000/health || exit
HEALTHCHECK CMD true
CMD dotnet watch run --no-restore --project /app/src/Kyoo.Host
ENTRYPOINT ["dotnet", "watch", "run", "--no-restore", "--project", "/app/src/Kyoo.Host"]

View File

@ -14,4 +14,4 @@ RUN yarn --immutable
ENV NEXT_TELEMETRY_DISABLED 1
EXPOSE 3000
EXPOSE 8081
CMD yarn dev
ENTRYPOINT ["yarn", "dev"]

View File

@ -5,4 +5,4 @@ COPY ./requirements.txt .
RUN pip3 install -r ./requirements.txt
COPY . .
CMD python3 -m scanner -v
ENTRYPOINT ["python3", "-m", "scanner", "-v"]

View File

@ -17,4 +17,4 @@ RUN apk add --no-cache ffmpeg mediainfo musl-dev
COPY --from=builder /usr/local/cargo/bin/transcoder ./transcoder
EXPOSE 7666
CMD ./transcoder
ENTRYPOINT ["./transcoder"]

View File

@ -10,4 +10,4 @@ RUN cargo build
RUN rm src/lib.rs
EXPOSE 7666
CMD cargo watch -x run
ENTRYPOINT ["cargo", "watch", "-x", "run"]