Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 749 Bytes
e71d24a b6b9398 2f2c945 e71d24a f60638a 89c67c9 fe25dcd 2f2c945 98845de e71d24a bfecec8 e71d24a b44fa84 d1ef1b5 1b66408 1c0590e |
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 |
# Dockerfile
# Use an official Node.js runtime as the base image
FROM node:18
USER root
ENV PUPPETEER_SKIP_DOWNLOAD=True
# Set the working directory in the container
RUN apt-get update
RUN apt-get install chromium -y
USER 1000
WORKDIR /usr/src/app
# Copy package.json and package-lock.json to the container
COPY --chown=1000 package.json package-lock.json ./
# Install dependencies
RUN npm install
# Copy the rest of the application files to the container
COPY --chown=1000 . .
RUN chmod +x entrypoint.sh
# Expose the application port (assuming your app runs on port 3000)
EXPOSE 3000
# Create symlink
# RUN mkdir -p ./static/data && ln -s /data/uploads ./static/data/uploads
# Start the application
ENTRYPOINT ["/usr/src/app/entrypoint.sh"] |