Files
legica-bot/dockerfile
Fran Jurmanović 2b192b9f94 edit dockerfile
2023-09-29 22:51:25 +02:00

18 lines
341 B
Plaintext

# Use Node 16 alpine as parent image
FROM node:16-alpine
# Change the working directory on the Docker image to /app
WORKDIR /app
# Copy package.json and package-lock.json to the /app directory
COPY . .
# Install dependencies
RUN npm install
RUN npm run build
# Expose application port
# EXPOSE 3000
# Start the application
CMD npm start