Skip to content

Commit

Permalink
Use node:20-slim instead of node:20-alpine (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-s authored Jan 18, 2024
1 parent 5e0d0d7 commit 9b28e6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .woodpecker/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
steps:
install:
image: node:20-alpine
image: node:20-slim
commands:
- corepack enable
- pnpm i

unit-test:
image: node:20-alpine
image: node:20-slim
commands:
- corepack enable
- pnpm test

typecheck:
image: node:20-alpine
image: node:20-slim
commands:
- corepack enable
- pnpm typecheck
Expand Down
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:20-slim

WORKDIR /app

Expand All @@ -8,7 +8,11 @@ COPY ["package.json", "pnpm-lock.yaml", "./"]
COPY ["tsconfig.json", "./"]
COPY ["src", "./src"]

RUN apk add -q --no-cache git wget && corepack enable
RUN apt update \
&& apt install -y git wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN corepack enable
RUN pnpm install --frozen-lockfile

CMD ["/app/node_modules/.bin/tsx", "/app/src/run.ts"]

0 comments on commit 9b28e6d

Please sign in to comment.