-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (31 loc) · 867 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
42
43
FROM ubuntu:20.04 AS build
# build stage, installs stuff that we don't want in subsequent stages
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
RUN apt-get -y update
RUN apt-get -y install \
python3 \
nodejs \
npm \
&& \
apt-get clean
RUN npm install -g [email protected]
COPY . /src
WORKDIR /src
RUN yarn && yarn build
FROM ubuntu:20.04 AS base
# runtime base, only packages and code required at runtime
ENV DEBIAN_FRONTEND noninteractive
ENV LANG C.UTF-8
RUN apt-get -y update && \
apt-get -y install \
nginx \
less \
vim-tiny \
&& \
apt-get -y --purge autoremove && \
apt-get clean
RUN rm -Rf /var/www/html/* /etc/nginx/sites-enabled/ /etc/nginx/sites-available/
COPY deploy/nginx.conf /etc/nginx/
COPY --from=build /src/build /var/www/html/transcript-explore
CMD "nginx"