edit dockerfile
This commit is contained in:
@@ -5,15 +5,12 @@ FROM node:16-alpine
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package.json and package-lock.json to the /app directory
|
||||
COPY package.json package-lock.json ./
|
||||
COPY . .
|
||||
|
||||
# Install dependencies
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
# Copy the rest of project files into this image
|
||||
COPY . .
|
||||
|
||||
# Expose application port
|
||||
# EXPOSE 3000
|
||||
|
||||
|
||||
Reference in New Issue
Block a user