Files
org-todo-pwa/Dockerfile

24 lines
429 B
Docker

# Use the official Node.js image as the base image
FROM node:14
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
COPY package*.json ./
RUN npm install
# Copy app source code
COPY . .
# Run the build script to update the version number
RUN node build.js
# Expose the port the app runs on
EXPOSE 3044
# Set the DEBUG environment variable
ENV DEBUG=app
# Command to run the app
CMD ["node", "server.js"]