Skip to content

Commit e81c828

Browse files
committed
fix(ci): add --ignore-scripts to dockerfile
1 parent ca7f83a commit e81c828

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ COPY app ${APP_ROOT}
1818
RUN chown -R 1001:0 ${APP_ROOT}
1919
USER 1001
2020
WORKDIR ${APP_ROOT}
21-
RUN npm ci && npm run build
21+
RUN npm ci --ignore-scripts --omit-dev && npm run build
2222

2323
#
2424
# Build the frontend
@@ -37,7 +37,7 @@ COPY frontend ${APP_ROOT}
3737
RUN chown -R 1001:0 ${APP_ROOT}
3838
USER 1001
3939
WORKDIR ${APP_ROOT}
40-
RUN npm ci && npm run build
40+
RUN npm ci --ignore-scripts --omit-dev && npm run build
4141

4242
#
4343
# Create the final container image
@@ -65,7 +65,7 @@ WORKDIR ${APP_ROOT}
6565
# Install Application
6666
RUN chown -R 1001:0 ${APP_ROOT}
6767
USER 1001
68-
RUN npm ci --omit=dev && npm run prisma:generate
68+
RUN npm ci --ignore-scripts --omit=dev && npm run prisma:generate
6969

7070
EXPOSE ${APP_PORT}
7171
CMD ["node", "--max-old-space-size=50", "./sbin/server.js"]

0 commit comments

Comments
 (0)