Map static app assets to host directory in addition to exposing port

This commit is contained in:
Martin Kleinschrodt 2019-06-12 09:20:27 +02:00
parent db11af196a
commit b7f31d3694
2 changed files with 3 additions and 1 deletions

View File

@ -8,7 +8,7 @@ ENV PL_ATTACHMENTS_PATH=/docs
EXPOSE 3000
EXPOSE 8080
VOLUME ["/data", "/docs"]
VOLUME ["/app", "/data", "/docs"]
WORKDIR /home/padloc/
@ -16,5 +16,6 @@ COPY . .
RUN npm ci --unsafe-perm
RUN npm run build
RUN cp -r packages/app/build/pwa /app
CMD ["npm", "start"]

View File

@ -17,3 +17,4 @@ services:
volumes:
- ./data:/data
- ./docs:/docs
- ./app:/app