Spaces:
Building
Building
sanjay7178
commited on
Commit
•
6d61a5e
1
Parent(s):
86cdd77
Synced repo using 'sync_with_huggingface' Github Action
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
@@ -8,12 +8,11 @@ RUN apt-get update && apt-get install -y caddy
|
|
8 |
|
9 |
WORKDIR /usr/src/app
|
10 |
|
11 |
-
COPY package*.json ./
|
12 |
-
COPY prisma ./prisma
|
13 |
-
RUN npm install
|
14 |
COPY . .
|
15 |
-
RUN
|
|
|
|
|
16 |
|
17 |
EXPOSE 7860
|
18 |
|
19 |
-
CMD ["sh", "-c", "
|
|
|
8 |
|
9 |
WORKDIR /usr/src/app
|
10 |
|
|
|
|
|
|
|
11 |
COPY . .
|
12 |
+
RUN npm install -g pnpm
|
13 |
+
RUN pnpm install
|
14 |
+
RUN pnpm exec prisma generate
|
15 |
|
16 |
EXPOSE 7860
|
17 |
|
18 |
+
CMD ["sh", "-c", "pnpm run start & caddy run --config /usr/src/app/Caddyfile"]
|