edit dockerfile
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user