-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (29 loc) · 912 Bytes
/
Dockerfile
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
37
38
39
40
41
FROM ubuntu:22.04
LABEL maintainer="William Gao <wlgao@ucsc.edu>"
ARG VG_VERSION=v1.46.0
ENV DEBIAN_FRONTEND noninteractive
WORKDIR /pgv
RUN apt-get update && apt-get install -y \
python3 \
nginx \
vim \
wget
# Install Node.js
# RUN curl -sL https://deb.nodesource.com/setup_16.x | bash && apt-get install -y gnupg nodejs
# Install yarn
# RUN npm install -g yarn
# remove APT cache
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
# Download vg
RUN wget -O /usr/local/bin/vg "https://github.com/vgteam/vg/releases/download/${VG_VERSION}/vg" \
&& chmod +x /usr/local/bin/vg
EXPOSE 8000
# Set up nginx
COPY scripts/docker/nginx.conf /etc/nginx/sites-enabled/default
COPY scripts/docker/start.sh start.sh
# Copy over build files
COPY ./packages/web/dist ./ui
COPY cli.py ./cli.py
# Configure pgv CLI to use the correct path
ENV PGV_DEFAULT_PATH "/pgv/ui/examples"
CMD ["./start.sh"]