edit dockerfile

This commit is contained in:
Fran Jurmanović
2023-09-29 22:51:25 +02:00
parent 1aa595f0d0
commit 2b192b9f94

View File

@@ -5,15 +5,12 @@ FROM node:16-alpine
WORKDIR /app WORKDIR /app
# Copy package.json and package-lock.json to the /app directory # Copy package.json and package-lock.json to the /app directory
COPY package.json package-lock.json ./ COPY . .
# Install dependencies # Install dependencies
RUN npm install RUN npm install
RUN npm run build RUN npm run build
# Copy the rest of project files into this image
COPY . .
# Expose application port # Expose application port
# EXPOSE 3000 # EXPOSE 3000