Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Dependencies
FROM node:20-alpine3.21 AS dependencies
FROM node:22-alpine3.21 AS dependencies

WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install

# Build
FROM node:20-alpine3.21 AS build
FROM node:22-alpine3.21 AS build

WORKDIR /app
COPY --from=dependencies /app/node_modules ./node_modules
Expand All @@ -15,11 +15,11 @@
RUN npx prisma generate && npm run build

# Deploy
FROM node:20-alpine3.21 as deploy
FROM node:22-alpine3.21 as deploy

Check warning on line 18 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

The 'as' keyword should match the case of the 'from' keyword

FromAsCasing: 'as' and 'FROM' keywords' casing do not match More info: https://docs.docker.com/go/dockerfile/rule/from-as-casing/

WORKDIR /app

ENV NODE_ENV production

Check warning on line 22 in Dockerfile

View workflow job for this annotation

GitHub Actions / build

Legacy key/value format with whitespace separator should not be used

LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format More info: https://docs.docker.com/go/dockerfile/rule/legacy-key-value-format/

# Add mysql precheck
RUN apk add --no-cache mysql-client
Expand Down