Skip to content

Commit

Permalink
fix: shift npm ci to after COPY
Browse files Browse the repository at this point in the history
  • Loading branch information
joshualai9922 committed Jul 15, 2024
1 parent d558f1c commit 805b3ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ ENV PATH="/opt/verapdf:${PATH}"
# Print out the contents of the current directory to verify package.json files are copied
RUN ls -la

# Install dependencies and compile TypeScript
RUN npm ci --omit=dev || true # true exits with code 0 - temp workaround until errors are resolved as npm run build is run as part of postinstall

# Install Playwright browsers
RUN npx playwright install chromium webkit
Expand All @@ -58,3 +56,7 @@ USER purple

# Copy application and support files
COPY . .

# Install dependencies and compile TypeScript
# true exits with code 0 - temp workaround until errors are resolved as npm run build is run as part of postinstall
RUN npm ci --omit=dev || true

0 comments on commit 805b3ba

Please sign in to comment.