math-quiz / Dockerfile
ghost613's picture
Update Dockerfile
4d0e269 verified
raw
history blame contribute delete
272 Bytes
# Use Node.js image
FROM node:18-alpine
# Create app directory
WORKDIR /app
# Install app dependencies
COPY package*.json ./
RUN npm install
# Bundle app source
COPY . .
# Build the app
RUN npm run build
# Expose port
EXPOSE 3000
# Start the app
CMD ["npm", "start"]