diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..bb5b60b488ce3525f3517b19809f1d1bf727e0c9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +# Use an official Node.js runtime as a base image +FROM node:20.9.0 + +# Set the working directory in the container +WORKDIR /app + +# Copy package.json and package-lock.json to the working directory +COPY package.json . +COPY package-lock.json . + +# Install application dependencies +RUN npm install + +# Copy the application files to the working directory +COPY . . + +# Expose the port that the app will run on +EXPOSE 3000 + +# Define the command to run your application +CMD ["npm", "start"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..372c6faca2a4eaa1bd95d7358405d12aa3375455 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +version: '3.8' +services: + web: + build: . + ports: + - "3000:3000" +