-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.dev
More file actions
29 lines (22 loc) · 854 Bytes
/
Dockerfile.dev
File metadata and controls
29 lines (22 loc) · 854 Bytes
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
# Use an official Node.js runtime as a parent image
FROM node:18
# Set the working directory in the container
WORKDIR /app
# Install Chrome and FFmpeg
RUN apt-get update && \
apt-get install -y wget gnupg ffmpeg && \
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' && \
apt-get update && apt-get install -y google-chrome-stable --no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# Install app dependencies
COPY package*.json ./
RUN npm install
# Install nodemon globally
RUN npm install -g nodemon
# Copy the rest of the app's source code
COPY . .
# Expose the port the app runs on
EXPOSE 3000
# Define the command to run your app
CMD ["nodemon", "src/index.js"]