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
321 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 yarn build
# Expose port
EXPOSE 3000
CMD ["yarn", "start"]
# Start the application in development mode
#CMD ["npm", "run", "dev"]