Skip to content

Commit a49b1a1

Browse files
committed
fix vulnerabilities, latest node image, and moved multer from dev to prod dep
1 parent 24388f6 commit a49b1a1

3 files changed

Lines changed: 731 additions & 479 deletions

File tree

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
FROM node:18-alpine as build
1+
FROM node:alpine as build
22
RUN apk add --no-cache make gcc g++ python3 linux-headers udev tzdata
33
WORKDIR /app
44
COPY package*.json ./
55
RUN npm ci
66
COPY . .
77
RUN npm run build
8-
RUN npm ci --production
8+
RUN npm ci --omit=dev
99

10-
FROM node:18-alpine
10+
FROM node:alpine
1111
RUN apk add git
1212
RUN mkdir /app && chown node:node /app && mkdir /app/data && chown node:node /app/data
1313
WORKDIR /app

0 commit comments

Comments
 (0)