feat: move to debian image
This commit is contained in:
parent
7f509fc029
commit
c12dc1a6c7
1 changed files with 9 additions and 10 deletions
19
Dockerfile
19
Dockerfile
|
|
@ -1,21 +1,20 @@
|
||||||
# Use the official Node.js Alpine image as the base image
|
# Use the official Node.js Debian image as the base image
|
||||||
FROM node:18-alpine
|
FROM node:18-bookworm-slim
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Install Chromium
|
# Install
|
||||||
ENV CHROME_BIN="/usr/bin/chromium-browser" \
|
ENV CHROME_BIN="/usr/bin/chromium" \
|
||||||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" \
|
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true" \
|
||||||
NODE_ENV="production"
|
NODE_ENV="production"
|
||||||
RUN set -x \
|
RUN set -x \
|
||||||
&& apk update \
|
&& apt-get update \
|
||||||
&& apk upgrade \
|
&& apt-get install -y --no-install-recommends \
|
||||||
&& apk add --no-cache \
|
fonts-freefont-ttf \
|
||||||
udev \
|
|
||||||
ttf-freefont \
|
|
||||||
chromium \
|
chromium \
|
||||||
ffmpeg
|
ffmpeg \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy package.json and package-lock.json to the working directory
|
# Copy package.json and package-lock.json to the working directory
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue