File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 1
- FROM node:18-alpine AS build
1
+ FROM node:20-slim AS build
2
2
3
3
WORKDIR /usr/src/app
4
4
5
5
COPY package.json package-lock.json ./
6
6
7
- RUN npm install -f
8
- # RUN npm audit fix
7
+ RUN npm install
8
+ RUN npm audit fix || true
9
9
10
10
COPY . .
11
11
@@ -14,11 +14,12 @@ ENV NODE_ENV=production
14
14
ENV VITE_REDIS_CONN_STRING=redis://redis:6379
15
15
ENV VITE_MQTT_HOST=mqtt
16
16
ENV VITE_MQTT_PORT=1883
17
- # ARG VITE_CMS_SSL=false
18
- # ENV VITE_CMS_HOST=${VITE_CMS_HOST}
17
+
18
+ # changed image to 20-slim as needed pacakge for arm32 musl (alpine) is not available
19
+ # @tailwindcss/oxide-linux-arm-musleabihf
19
20
RUN npm run build
20
21
21
- FROM node:18-alpine
22
+ FROM node:20-slim
22
23
23
24
WORKDIR /usr/src/app
24
25
@@ -27,7 +28,7 @@ COPY --from=build /usr/src/app/build ./
27
28
# RUN echo '{"type": "module"}' > package.json
28
29
COPY package.json package-lock.json ./
29
30
RUN npm i redis async-mqtt
30
- # RUN npm audit fix
31
+ RUN npm audit fix || true
31
32
32
33
USER 1337:1337
33
34
ENV NODE_ENV=production
You can’t perform that action at this time.
0 commit comments