Skip to content

Commit a40019a

Browse files
authored
Add docker CI (#307)
* Fix lock file * Fix Dockerfile * Add docker CI
1 parent 700d44c commit a40019a

File tree

3 files changed

+429
-3
lines changed

3 files changed

+429
-3
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ jobs:
4242
- name: publint
4343
run: npx publint
4444

45+
docker-build:
46+
runs-on: ubuntu-latest
47+
permissions:
48+
contents: read
49+
steps:
50+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
51+
with:
52+
submodules: true
53+
- name: Build Docker image
54+
run: docker build .
55+
4556
pinact:
4657
runs-on: ubuntu-latest
4758
permissions:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ COPY . /app
44

55
WORKDIR /app
66

7-
RUN --mount=type=cache,target=/root/.npm-production npm ci --ignore-scripts --omit-dev
7+
RUN --mount=type=cache,target=/root/.npm-production npm ci --ignore-scripts
88

99
RUN --mount=type=cache,target=/root/.npm npm run build
1010

@@ -57,7 +57,7 @@ WORKDIR /app
5757
RUN chown -R appuser:appgroup /app
5858

5959
# Install *only* the production dependencies
60-
RUN npm ci --ignore-scripts --omit-dev
60+
RUN npm ci --ignore-scripts --omit=dev
6161

6262
# Now, switch to running as our non-root user for the actual app process
6363
USER appuser

0 commit comments

Comments
 (0)