api / Dockerfile
aqul's picture
fix: missing CMD
8445c21 verified
raw
history blame contribute delete
379 Bytes
FROM node:20
ENV TZ=Asia/Jakarta
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV PORT=7860
WORKDIR /app
RUN --mount=type=secret,id=GITHUB_REPO,required=true \
git clone $(cat /run/secrets/GITHUB_REPO) api
WORKDIR /app/api
RUN chmod -R 777 /app && \
npm cache clean --force && \
npm install --force
EXPOSE 7860
CMD ["node", "app.js"]