Dockerfile
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Install dependencies
COPY package.json package-lock.json ./
RUN npm ci
# Copy rest of the source
COPY . .
# Expose the port React's dev server runs on
ENV PORT 5000
EXPOSE 5000
# Run the dev server
CMD ["npm", "start"]
No comments yet.