Skip to content

Commit

Permalink
Revert 2 step build
Browse files Browse the repository at this point in the history
  • Loading branch information
ins1d3r committed Jul 17, 2024
1 parent 3897fdf commit 147f2e0
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,19 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Build static content
uses: addnab/docker-run-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
image: ghcr.io/wirenboard/website-base-image:initial
options: -v ${{ github.workspace }}:/var/www
run: |
cd /var/www
pnpm install
pnpm run build
- name: Build and push
uses: docker/build-push-action@v5
with:
Expand Down
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
FROM ghcr.io/wirenboard/website-base-image:initial
FROM node:18.19.0-slim

WORKDIR /var/www

COPY package.json /var/www
RUN pnpm install

COPY . /var/www
RUN pnpm run build
COPY .output /var/www

ENV PORT=80

ENTRYPOINT ["/usr/bin/node", "/var/www/.output/server/index.mjs"]
ENTRYPOINT ["node", "/var/www/server/index.mjs"]

0 comments on commit 147f2e0

Please sign in to comment.