Skip to content

Commit 2bd9e6e

Browse files
committed
Use node 22.2.0
1 parent 32f96e0 commit 2bd9e6e

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Install, build, and upload your site output
2929
uses: withastro/action@v2
3030
with:
31-
node-version: 21.5.0
31+
node-version: 22.2.0
3232

3333
deploy:
3434
needs: build

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM node:22.2.0-alpine
2+
WORKDIR /usr/app
3+
COPY package.json .
4+
RUN npm install
5+
COPY . .

docker-compose.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
services:
2-
app:
3-
image: node:21
2+
astro:
3+
build: .
44
ports:
55
- 4321:4321
6-
working_dir: /dist
76
command: npm run preview -- --host 0.0.0.0
87
volumes:
9-
- ./:/dist
8+
- .:/usr/app/
9+
- /usr/app/node_modules

0 commit comments

Comments
 (0)