Skip to content

Commit 466bbce

Browse files
committed
switch from alpine to 20-slim image as @tailwindcss/oxide-linux-arm-musleabihf does not exist (gnu version exists)
1 parent 8be560f commit 466bbce

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
FROM node:18-alpine AS build
1+
FROM node:20-slim AS build
22

33
WORKDIR /usr/src/app
44

55
COPY package.json package-lock.json ./
66

7-
RUN npm install -f
8-
#RUN npm audit fix
7+
RUN npm install
8+
RUN npm audit fix || true
99

1010
COPY . .
1111

@@ -14,11 +14,12 @@ ENV NODE_ENV=production
1414
ENV VITE_REDIS_CONN_STRING=redis://redis:6379
1515
ENV VITE_MQTT_HOST=mqtt
1616
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
1920
RUN npm run build
2021

21-
FROM node:18-alpine
22+
FROM node:20-slim
2223

2324
WORKDIR /usr/src/app
2425

@@ -27,7 +28,7 @@ COPY --from=build /usr/src/app/build ./
2728
# RUN echo '{"type": "module"}' > package.json
2829
COPY package.json package-lock.json ./
2930
RUN npm i redis async-mqtt
30-
#RUN npm audit fix
31+
RUN npm audit fix || true
3132

3233
USER 1337:1337
3334
ENV NODE_ENV=production

0 commit comments

Comments
 (0)