mirror of
https://github.com/arthur-pbty/syncfilm.git
synced 2026-06-03 15:07:40 +02:00
20 lines
426 B
Docker
20 lines
426 B
Docker
# Use the official Node.js LTS image
|
|
FROM node:18
|
|
|
|
# Set the working directory inside the container
|
|
WORKDIR /app
|
|
|
|
# Copy package.json and package-lock.json to the container
|
|
COPY package*.json ./
|
|
|
|
# Install dependencies
|
|
RUN npm install --production
|
|
|
|
# Copy the rest of the application code to the container
|
|
COPY . .
|
|
|
|
# Expose the port the app runs on
|
|
EXPOSE 3000
|
|
|
|
# Start the application
|
|
CMD ["npm", "start"] |