prompt-optimizer / Dockerfile
vyles's picture
Update Dockerfile
8e3affb verified
raw
history blame contribute delete
392 Bytes
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"]