jackett.io / Dockerfile
SteveCelticus's picture
Update Dockerfile
5dd0284 verified
raw
history blame contribute delete
526 Bytes
FROM node:20-slim
# Set the working directory in the container to /app
WORKDIR /app
# Install git
RUN apt-get update && apt-get install -y git
# Expose the secret GITHUB_TOKEN at buildtime and use its value in git clone command
RUN --mount=type=secret,id=GITHUB_TOKEN,mode=0444,required=true \
git clone https://$(cat /run/secrets/GITHUB_TOKEN)@github.com/SteveCelticus/jackett.io.git /app || true && \
ls -l /app
RUN npm install
# COPY --chown=node:node ./src ./src
EXPOSE 4000
CMD [ "node", "src/index.js" ]