Separate dockerfile layers and add volume

This commit is contained in:
Vítor Xoteslem
2019-11-26 00:03:55 -03:00
parent c1d11e7489
commit ff006a254a
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"