fix(docker) images: make dockerfiles use node:lts-buster and node:lts-buster-slim for alpine (#363)

This commit is contained in:
Timo Knapp 2022-01-06 14:23:34 +01:00 committed by GitHub
parent 3269cff066
commit c7371d9c3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View file

@ -1,4 +1,4 @@
FROM node:lts-buster-slim FROM node:lts-buster
LABEL maintainer="Coderaiser" LABEL maintainer="Coderaiser"
RUN mkdir -p /usr/src/app RUN mkdir -p /usr/src/app

View file

@ -1,4 +1,4 @@
FROM node:alpine FROM node:lts-buster-slim
LABEL maintainer="Coderaiser" LABEL maintainer="Coderaiser"
RUN mkdir -p /usr/src/app RUN mkdir -p /usr/src/app
@ -8,12 +8,12 @@ COPY package.json /usr/src/app/
RUN npm config set package-lock false && \ RUN npm config set package-lock false && \
npm install --production && \ npm install --production && \
apk update && \ apt update && \
apk add --no-cache bash make g++ python3 && \ apt install -y make g++ python3 && \
npm i gritty && \ npm i gritty && \
npm cache clean --force && \ npm cache clean --force && \
apk del make g++ python3 && \ apt remove -y make g++ python3 && \
rm -rf /usr/include /tmp/* /var/cache/apk/* rm -rf /usr/include /tmp/* /var/cache/apt/*
COPY . /usr/src/app COPY . /usr/src/app