Skip to content

Conversation

@eucyt
Copy link
Contributor

@eucyt eucyt commented Nov 14, 2025

Currently, Docker was not able to start (most likely due to differences in the lock file caused by a mismatch in npm versions).
To make it easier to catch this kind of issue, I added Docker CI.


# Install *only* the production dependencies
RUN npm ci --ignore-scripts --omit-dev
RUN npm ci --ignore-scripts --omit=dev
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--omit=dev is correct.

WORKDIR /app

RUN --mount=type=cache,target=/root/.npm-production npm ci --ignore-scripts --omit-dev
RUN --mount=type=cache,target=/root/.npm-production npm ci --ignore-scripts
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To conduct prettier, we should install libralies without --omit=dev

@eucyt eucyt self-assigned this Nov 14, 2025
@eucyt eucyt marked this pull request as ready for review November 14, 2025 06:39
@eucyt eucyt requested a review from a team November 14, 2025 06:39
@eucyt eucyt added this pull request to the merge queue Nov 14, 2025
Merged via the queue into line:main with commit a40019a Nov 14, 2025
7 checks passed
@eucyt eucyt deleted the feature/add-docker-ci branch November 14, 2025 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants