forked from uc-cdis/gen3-frontend-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
37 lines (30 loc) · 805 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
# docker build -t ff .
# docker run -p 3000:3000 -it ff
FROM quay.io/cdis/ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
ARG BASE_PATH
ARG NEXT_PUBLIC_PORTAL_BASENAME
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
libssl1.1 \
libgnutls30 \
ca-certificates \
curl \
git \
nginx \
python3 \
time \
vim \
&& curl -sL https://deb.nodesource.com/setup_16.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log \
&& npm install -g npm@8
RUN mkdir -p /gen3
COPY . /gen3
WORKDIR /gen3/
RUN npm ci
RUN npm run compile
CMD bash ./start.sh