chore: update dockerfile
This commit is contained in:
parent
a9812592fe
commit
749187e1e9
3 changed files with 5 additions and 5 deletions
4
.github/workflows/frontend-tests.yml
vendored
4
.github/workflows/frontend-tests.yml
vendored
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
version: 8
|
version: 8
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: "20"
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
cache-dependency-path: "web/pnpm-lock.yaml"
|
cache-dependency-path: "web/pnpm-lock.yaml"
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
|
|
@ -40,7 +40,7 @@ jobs:
|
||||||
version: 8
|
version: 8
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: "18"
|
node-version: "20"
|
||||||
cache: pnpm
|
cache: pnpm
|
||||||
cache-dependency-path: "web/pnpm-lock.yaml"
|
cache-dependency-path: "web/pnpm-lock.yaml"
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
# Build frontend dist.
|
# Build frontend dist.
|
||||||
FROM node:18-alpine AS frontend
|
FROM node:20-alpine AS frontend
|
||||||
WORKDIR /frontend-build
|
WORKDIR /frontend-build
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ services:
|
||||||
- .air/go-build:/root/.cache/go-build
|
- .air/go-build:/root/.cache/go-build
|
||||||
- $HOME/go/pkg/:/go/pkg/ # Cache for go mod shared with the host
|
- $HOME/go/pkg/:/go/pkg/ # Cache for go mod shared with the host
|
||||||
web:
|
web:
|
||||||
image: node:18-alpine
|
image: node:20-alpine
|
||||||
working_dir: /work
|
working_dir: /work
|
||||||
depends_on: ["api"]
|
depends_on: ["api"]
|
||||||
ports: ["3001:3001"]
|
ports: ["3001:3001"]
|
||||||
|
|
@ -61,7 +61,7 @@ services:
|
||||||
# run npm
|
# run npm
|
||||||
npm:
|
npm:
|
||||||
profiles: ["tools"]
|
profiles: ["tools"]
|
||||||
image: node:18-alpine
|
image: node:20-alpine
|
||||||
working_dir: /work
|
working_dir: /work
|
||||||
environment: ["NPM_CONFIG_UPDATE_NOTIFIER=false"]
|
environment: ["NPM_CONFIG_UPDATE_NOTIFIER=false"]
|
||||||
entrypoint: "npm"
|
entrypoint: "npm"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue