Skip to content

Commit 6088a30

Browse files
committed
Docker build
1 parent 51db862 commit 6088a30

8 files changed

+536
-14
lines changed

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/node_modules
2+
.idea
3+
.vscode

Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
FROM node:12
22

3+
COPY packages/client/output/dist /srv/client/output/dist
4+
COPY packages/core/dist/esm /srv/core/dist/esm
5+
COPY packages/producer/output/dist /srv/producer/output/dist
6+
COPY packages/server /srv/server
7+
COPY packages/slides /srv/slides
8+
9+
WORKDIR /srv/slides
10+
RUN ["npm", "install"]
11+
12+
WORKDIR /srv/server
13+
RUN ["npm", "install"]
14+
CMD ["npm", "start"]

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,17 @@
1515
* Connect to ngrok provided URL in headset
1616

1717
It helps to have a "known" place to share the ngrok URL that is bookmarked in the headset's browser. I.e. Google Keep is a good way to share info between development computer and headset.
18+
19+
## Docker
20+
21+
Build the image
22+
23+
`docker build -t "omni-img" .`
24+
25+
Run the image
26+
27+
`docker run -p :8888:3000 --name omni omni-img`
28+
29+
Debug the image
30+
31+
`docker exec -it omni /bin/bash`

0 commit comments

Comments
 (0)