Nhentai / Dockerfile
KilersBotz's picture
Update Dockerfile
7aa8ecc verified
Raw
History Blame Contribute Delete
422 Bytes
FROM node:22-bullseye
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
WORKDIR /app
RUN --mount=type=secret,id=GITHUB_REPO,required=true \
git clone $(cat /run/secrets/GITHUB_REPO) myrepo
WORKDIR /app/myrepo
COPY package*.json ./
COPY . .
RUN chmod -R 777 /app
RUN ls
RUN npm i
EXPOSE 7860
CMD ["npm", "run", "start"]