Spaces:
Paused
Paused
File size: 526 Bytes
e53e85f 5dd0284 e53e85f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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" ] |