Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Commit c2778e2

Browse files
committed
fix: align Dockerfile more with Slate
1 parent 6ed66dc commit c2778e2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM node:dubnium-alpine
22

3-
WORKDIR /usr/src/app
3+
WORKDIR /srv/shins
44

55
# install dependencies
66
COPY package.json .
@@ -9,5 +9,7 @@ RUN npm install
99
# install the app
1010
COPY . .
1111

12+
VOLUME /srv/shins/source
13+
1214
EXPOSE 4567
1315
CMD [ "npm", "run", "serve" ]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ A `Dockerfile` is included. To build:
6262

6363
to run:
6464

65-
* `docker run -p 4567:4567 shins:latest`
65+
* `docker run -p 4567:4567 -v $(pwd)/source:/srv/shins/source shins:latest`
6666

6767
### Multiple Shins pages / portal
6868

0 commit comments

Comments
 (0)