Skip to content

Commit

Permalink
Separate dockerfile layers and add volume
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorcx committed Nov 26, 2019
1 parent c1d11e7 commit ff006a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Expand Up @@ -14,6 +14,7 @@ services:
- "./plugins:/app/plugins"
- "./static:/app/static"
- "./store:/app/store"
- "./components:/app/components"
ports:
- "3000:3000"
command: "npm run dev"

0 comments on commit ff006a2

Please sign in to comment.