Separate dockerfile layers and add volume (#340)
Separate dockerfile layers and add volume
This commit is contained in:
@@ -8,9 +8,12 @@ RUN apk add --update --no-cache \
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY . .
|
COPY package*.json ./
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ services:
|
|||||||
- "./plugins:/app/plugins"
|
- "./plugins:/app/plugins"
|
||||||
- "./static:/app/static"
|
- "./static:/app/static"
|
||||||
- "./store:/app/store"
|
- "./store:/app/store"
|
||||||
|
- "./components:/app/components"
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000"
|
- "3000:3000"
|
||||||
command: "npm run dev"
|
command: "npm run dev"
|
||||||
|
|||||||
Reference in New Issue
Block a user