File size: 773 Bytes
b7c0ae9 9765f38 c7d3810 a26bc91 b7c0ae9 c7d3810 b7c0ae9 1240ca4 b7c0ae9 9765f38 b7c0ae9 9a38238 c7d3810 9765f38 c7d3810 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# Use a Debian-based Node.js image
FROM node:20-buster
# Set the working directory
WORKDIR /app
# Copy the application files to the container
COPY . /app
# Install prerequisites and helper packages
RUN apt-get update && apt-get install -y \
bash \
dpkg \
x11-apps \
libnss3 \
fonts-noto \
fonts-noto-cjk \
fonts-noto-extra \
libstdc++6 \
libuuid1 \
libvips-dev \
build-essential \
libjpeg-dev \
libpango1.0-dev \
libcairo2-dev \
imagemagick \
libssl1.1 \
giflib-tools \
librsvg2-dev \
chromium \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install Node.js dependencies
RUN npm install
# Expose the application port
EXPOSE 7860
# Start the application
CMD ["node", "beta.js"]
|