erp-comp / Dockerfile
sanjay7178's picture
Synced repo using 'sync_with_huggingface' Github Action
bb0677c verified
raw
history blame contribute delete
660 Bytes
FROM node:18
# Install Caddy
RUN apt-get update && apt-get install -y debian-keyring debian-archive-keyring apt-transport-https
RUN curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
RUN curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | tee /etc/apt/sources.list.d/caddy-stable.list
RUN apt-get update && apt-get install -y caddy
WORKDIR /usr/src/app
COPY . .
RUN npm install -g pnpm
RUN pnpm install
RUN pnpm i -D prisma
RUN pnpm exec prisma generate
EXPOSE 7860
CMD ["sh", "-c", "pnpm run start & caddy run --config /usr/src/app/Caddyfile"]