ramsey / Dockerfile
Yakova's picture
Update Dockerfile
8267dd9 verified
raw
history blame contribute delete
862 Bytes
FROM mbonea/whats-ramsey:latest
WORKDIR /usr/src/app
# Install necessary packages for Puppeteer
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
wget ffmpeg curl aria2 \
fonts-liberation \
libatk-bridge2.0-0 \
libatk1.0-0 \
libatspi2.0-0 \
libcups2 \
libdrm2 \
libgbm1 \
libgtk-3-0 \
libnspr4 \
libnss3 \
libu2f-udev \
libvulkan1 \
libxcomposite1 \
libxdamage1 \
mesa-vulkan-drivers \
libxfixes3 \
libasound2 \
libxkbcommon0 \
libxrandr2 \
xdg-utils
RUN npm install --no-cache
RUN npm install -g http-server
# Copy the application code
COPY . /usr/src/app/
# Create directory and set permissions
RUN chmod -R 777 /usr/src/app
# Expose the port your application runs on
EXPOSE 7860
# Define the command to run the start script
CMD ["npm", "start"]