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
commit d802945ec7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"