You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
344 B

# Base image
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Install dependencies
COPY package*.json ./
# RUN yarn install
RUN npm install
# Copy project files
COPY . .
# RUN npm run build
RUN yarn build
# Expose port
# EXPOSE 3000
CMD ["yarn", "start"]
# Start the application in development mode
# CMD ["npm", "run", "dev"]