Separate dockerfile layers and add volume (#340)

Separate dockerfile layers and add volume
This commit is contained in:
Liyas Thomas
2019-11-26 08:56:52 +05:30
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -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

View File

@@ -14,6 +14,7 @@ services:
- "./plugins:/app/plugins"
- "./static:/app/static"
- "./store:/app/store"
- "./components:/app/components"
ports:
- "3000:3000"
command: "npm run dev"