Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,13 @@ jobs:
- uses: ./.github/actions/setup
- name: Enforce 80% coverage
run: npm run test:coverage

docker-build:
name: Docker Build
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -f packages/backend/Dockerfile -t mocker-backend:ci .
2 changes: 1 addition & 1 deletion packages/backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ WORKDIR /usr/src/app
# Copy backend build artifacts and writable path from build stage.
COPY --from=build --chown=65532:65532 /usr/src/app/packages/backend/dist ./dist
COPY --from=build --chown=65532:65532 /usr/src/app/node_modules ./node_modules
COPY --from=build --chown=65532:65532 /usr/src/app/images ./images
COPY --from=build --chown=65532:65532 --chmod=700 /usr/src/app/images ./images

EXPOSE 80

Expand Down
Loading