Spaces:
Sleeping
Sleeping
File size: 392 Bytes
41ea5ec 8e3affb 41ea5ec |
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
ENV TZ=Asia/Jakarta
ENV PORT=7860
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && \
apt-get install -y git && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN --mount=type=secret,id=GITHUB_REPO,required=true \
git clone $(cat /run/secrets/GITHUB_REPO) .
RUN npm install
EXPOSE 7860
CMD ["npm", "start"]
|