Set fixed versions of base containers in frontend

This commit is contained in:
2023-11-14 07:46:28 +01:00
parent d480858411
commit 378dfcf351

View File

@@ -1,4 +1,4 @@
FROM node:latest as build-stage FROM node:20.9.0-bullseye-slim as build-stage
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install
@@ -7,7 +7,7 @@ RUN npm run build
FROM nginx:stable-alpine as production-stage FROM nginx:stable-alpine3.17-slim as production-stage
RUN mkdir /app RUN mkdir /app
RUN apk add --no-cache tzdata RUN apk add --no-cache tzdata
@@ -20,7 +20,7 @@ EXPOSE 80
EXPOSE 443 EXPOSE 443
FROM node:latest as dev FROM node:20.9.0-bullseye-slim as dev
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install