Separate dockerfile layers and add volume
This commit is contained in:
parent
c1d11e7489
commit
ff006a254a
2 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ services:
|
|||
- "./plugins:/app/plugins"
|
||||
- "./static:/app/static"
|
||||
- "./store:/app/store"
|
||||
- "./components:/app/components"
|
||||
ports:
|
||||
- "3000:3000"
|
||||
command: "npm run dev"
|
||||
|
|
|
|||
Loading…
Reference in a new issue