Spaces:
Sleeping
Sleeping
File size: 653 Bytes
cd3b919 7007b84 cd3b919 |
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 |
FROM ubuntu:22.04
# Set noninteractive installation
ENV DEBIAN_FRONTEND=noninteractive
# Install build dependencies and curl
RUN apt-get update && apt-get install -y \
curl \
build-essential \
libcairo2-dev \
libpango1.0-dev \
libjpeg-dev \
libgif-dev \
librsvg2-dev \
python2 \
fontconfig
# Download and install Node.js 12.13.0
RUN curl -fsSL https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.xz | tar -xJ -C /usr/local --strip-components=1
# Create app directory
WORKDIR /app
# Copy the entire project including node_modules
COPY . .
# Expose port
EXPOSE 7860
# Start command
CMD ["npm", "start"]
|