personal-site/Dockerfile
Benjamin Toby b9364a702c Updates
2023-10-24 18:59:00 +01:00

20 lines
330 B
Docker

# Set Node.js version
FROM node:16
# Set working directory
WORKDIR /usr/src/app
# Copy package.json and package-lock.json
COPY package*.json ./
# Install dependencies
RUN npm install
# Copy source code
COPY . .
# Expose port 3000
EXPOSE 3000
# Run the app
CMD ["npm", "run", "build", "&&", "npm", "start"]