chore: dockerfile from node:18-slim

This commit is contained in:
chenos 2023-05-26 17:03:08 +08:00
parent 1e870cf5ef
commit 943fc75653

View File

@ -1,4 +1,4 @@
FROM node:16-stretch-slim as builder FROM node:18-slim as builder
WORKDIR /app WORKDIR /app
@ -15,7 +15,7 @@ RUN cd /app \
&& find ./my-nocobase-app/node_modules/china-division/dist -name '*.sqlite' -delete \ && find ./my-nocobase-app/node_modules/china-division/dist -name '*.sqlite' -delete \
&& tar -zcf ./nocobase.tar.gz -C /app/my-nocobase-app . && tar -zcf ./nocobase.tar.gz -C /app/my-nocobase-app .
FROM node:16-stretch-slim FROM node:18-slim
# COPY ./sources.list /etc/apt/sources.list # COPY ./sources.list /etc/apt/sources.list
RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \ RUN ARCH= && dpkgArch="$(dpkg --print-architecture)" \