Added Dockerfile

This commit is contained in:
Douglas Barone 2023-10-20 15:32:00 -04:00
parent 08e86da64e
commit 7b21a5996b

28
Dockerfile Normal file
View File

@ -0,0 +1,28 @@
FROM node:21
# Create app directory
WORKDIR /app
# Install app dependencies
COPY package*.json ./
RUN npm install
# Bundle app source
COPY . .
# Build app source
RUN npm run build
# Set environment variables
ENV PORT=80
EXPOSE 80
CMD [ "npm", "start" ]