dockerfile

This commit is contained in:
Fran Jurmanović
2023-09-29 22:07:34 +02:00
parent 5cd9ec4e4b
commit 1e64dfff95

20
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