Skip to content

Commit

Permalink
Merge pull request #10 from appvia/dockerfile-context
Browse files Browse the repository at this point in the history
chore: move dockerfile to root and update context
  • Loading branch information
KashifSaadat authored Jul 4, 2024
2 parents 52803bb + 73b6992 commit bed91f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
id: push
uses: docker/build-push-action@v6
with:
context: ./app
context: ./
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true

7 changes: 4 additions & 3 deletions app/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# syntax=docker/dockerfile:1
FROM node:22-alpine
LABEL maintainer="Appvia Ltd <[email protected]>"
WORKDIR /app
COPY yarn.lock ./
COPY package.json ./
COPY ./app/yarn.lock ./
COPY ./app/package.json ./
RUN yarn install --production
COPY . .
COPY ./app .
EXPOSE 3000
CMD ["node", "src/index.js"]
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3.7"
services:
app:
build:
context: app
context: ./
ports:
- 3000:3000
expose:
Expand Down

0 comments on commit bed91f8

Please sign in to comment.