Skip to content

Commit

Permalink
Fix Dockerfile - actually install TS
Browse files Browse the repository at this point in the history
  • Loading branch information
lowercasename committed Jul 31, 2024
1 parent 43d0af0 commit 6ceae29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/publish-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9

- name: Publish to GHCR
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- run: docker build -t ghcr.io/${{ github.repository }}:latest .
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM node:20-alpine
ENV NODE_ENV=production
WORKDIR /app
RUN apk add --no-cache python3 build-base
ADD package.json pnpm-lock.yaml /app/
RUN npm install -g pnpm
RUN pnpm install --prod
RUN pnpm install
COPY . /app/
# Always exit 0 here because TSC will fail while we're migrating to TypeScript but
# not everything uses TypeScript
Expand Down

0 comments on commit 6ceae29

Please sign in to comment.