attempt at making docker compose

This commit is contained in:
Quentin Roussel
2024-04-24 15:56:43 +02:00
parent 96acbb9974
commit e592aa33cb
5 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
Dockerfile
.dockerignore
node_modules
npm-debug.log
README.md
.next
.git
.vscode

20
traque-back/Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
# Use Node 16 alpine as parent image
FROM node:16-alpine
# Change the working directory on the Docker image to /app
WORKDIR /app
# Copy package.json and package-lock.json to the /app directory
COPY package.json package-lock.json ./
# Install dependencies
RUN npm install
# Copy the rest of project files into this image
COPY . .
# Expose application port
EXPOSE 3000
# Start the application
CMD npm start