FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
unigraph-dev/Dockerfile at main · unigraph-dev/unigraph-dev · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
unigraph-dev
/
unigraph-dev
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
56
Star
764
Code
Issues
22
Pull requests
2
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
unigraph-dev
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (30 loc) · 1.27 KB
Breadcrumbs
unigraph-dev
/
Dockerfile
Copy path
File metadata and controls
36 lines (30 loc) · 1.27 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#
syntax=docker/dockerfile:1
FROM
amd64/ubuntu:20.04
#
Set up dependencies
RUN
apt update && apt install -y curl wget
#
Set up Node.js 16
RUN
curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh
RUN
bash /tmp/nodesource_setup.sh
RUN
apt update && apt install -y nodejs
RUN
npm install yarn -g
#
Set up dgraph
ADD
https://github.com/unigraph-dev/dgraph/releases/latest/download/dgraph_linux_amd64 dgraph_linux_amd64
RUN
mkdir /opt/unigraph
RUN
mv dgraph_linux_amd64 /opt/dgraph
RUN
chmod +x /opt/dgraph
#
Set up unigraph, with incremental caches
COPY
package.json yarn.lock /app/
COPY
./packages/unigraph-dev-backend/package.json /app/packages/unigraph-dev-backend/package.json
COPY
./packages/unigraph-dev-common/package.json /app/packages/unigraph-dev-common/package.json
COPY
./packages/unigraph-dev-electron/package.json /app/packages/unigraph-dev-electron/package.json
COPY
./packages/unigraph-dev-explorer/package.json /app/packages/unigraph-dev-explorer/package.json
RUN
cd /app && yarn --network-timeout 600000
COPY
. /app
RUN
cd /app && yarn --network-timeout 600000
RUN
cd /app && yarn build-deps
#
Run Unigraph
WORKDIR
/app
CMD
[
"sh"
,
"-c"
,
"./scripts/start_server.sh -b /opt/dgraph -d /opt/unigraph & yarn explorer-start"
]
EXPOSE
3000
EXPOSE
4001
EXPOSE
4002
Back
|
FazBrowse Home
|
New Git URL