Skip to content

Commit 904cd9f

Browse files
committed
test
1 parent 8bc2c2a commit 904cd9f

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM node:20-bookworm-slim AS builder
22
# Create app directory
33
WORKDIR /app
44

5-
COPY ./prisma/schema.prisma ./
5+
COPY ./prisma ./prisma
66

77
# A wildcard is used to ensure both package.json AND package-lock.json are copied
88
COPY package*.json ./

prisma/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ FROM node:20-bookworm-slim
22
ENV DEBIAN_FRONTEND=noninteractive
33
RUN apt update && apt install -y libssl3 && rm -rf /var/lib/apt/lists/*
44

5-
WORKDIR /app
5+
WORKDIR /workspace
66

7-
COPY . .
7+
COPY . ./prisma
88

9-
ENV NODE_TLS_REJECT_UNAUTHORIZED='0'
10-
RUN npm ci --verbose
9+
WORKDIR /workspace/prisma
1110

12-
RUN chmod +x /app/wait-for-it.sh
13-
RUN chmod +x /app/entrypoint.sh
11+
ENV NODE_TLS_REJECT_UNAUTHORIZED='0'
12+
RUN npm ci --verbose && \
13+
chmod +x /workspace/prisma/wait-for-it.sh && \
14+
chmod +x /workspace/prisma/entrypoint.sh
1415

15-
ENTRYPOINT ["/app/entrypoint.sh"]
16+
ENTRYPOINT ["/workspace/prisma/entrypoint.sh"]
1617

1718
CMD ["sh"]

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"extends": "./tsconfig.json",
3-
"exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
3+
"exclude": ["node_modules", "test", "dist", "**/*spec.ts", "prisma"]
44
}

0 commit comments

Comments
 (0)