File size: 660 Bytes
c6be938
 
 
 
 
 
 
 
 
 
 
6d61a5e
 
bb0677c
6d61a5e
c6be938
 
 
6d61a5e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"]