fix: use node:18-bullseye (#3178)

This commit is contained in:
chenos 2023-12-13 10:28:25 +08:00 committed by GitHub
parent e9e2e73efe
commit 005a3806e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM node:18 as builder FROM node:18-bullseye as builder
ARG VERDACCIO_URL=http://host.docker.internal:10104/ ARG VERDACCIO_URL=http://host.docker.internal:10104/
ARG COMMIT_HASH ARG COMMIT_HASH
ARG APPEND_PRESET_LOCAL_PLUGINS ARG APPEND_PRESET_LOCAL_PLUGINS
@ -41,7 +41,7 @@ RUN cd /app \
&& tar -zcf ./nocobase.tar.gz -C /app/my-nocobase-app . && tar -zcf ./nocobase.tar.gz -C /app/my-nocobase-app .
FROM node:18-slim FROM node:18-bullseye-slim
RUN apt-get update && apt-get install -y nginx RUN apt-get update && apt-get install -y nginx
RUN rm -rf /etc/nginx/sites-enabled/default RUN rm -rf /etc/nginx/sites-enabled/default
COPY ./docker/nocobase/nocobase.conf /etc/nginx/sites-enabled/nocobase.conf COPY ./docker/nocobase/nocobase.conf /etc/nginx/sites-enabled/nocobase.conf

View File

@ -1,4 +1,4 @@
FROM node:18-slim as builder FROM node:18-bullseye-slim as builder
WORKDIR /app WORKDIR /app
@ -12,7 +12,7 @@ RUN cd /app \
&& rm -rf nocobase.tar.gz \ && rm -rf nocobase.tar.gz \
&& tar -zcf ./nocobase.tar.gz -C /app/my-nocobase-app . && tar -zcf ./nocobase.tar.gz -C /app/my-nocobase-app .
FROM node:18-slim FROM node:18-bullseye-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)" \

View File

@ -17,7 +17,7 @@ server {
server_name _; server_name _;
root /app/nocobase/node_modules/@nocobase/app/dist/client; root /app/nocobase/node_modules/@nocobase/app/dist/client;
index index.html; index index.html;
client_max_body_size 20M; client_max_body_size 1000M;
access_log /var/log/nginx/nocobase.log apm; access_log /var/log/nginx/nocobase.log apm;
gzip on; gzip on;