Separate dockerfile layers and add volume
This commit is contained in:
@@ -8,9 +8,12 @@ RUN apk add --update --no-cache \
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
Reference in New Issue
Block a user