-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (29 loc) · 1.1 KB
/
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
FROM ubuntu:18.04
ENV appDir /var/www/app/current
RUN apt-get update && apt-get install -y -q --no-install-recommends \
apt-utils apt-transport-https curl \
python3 python3-pip python3-setuptools python3.6-dev \
imagemagick psmisc \
libssl-dev gcc apt-utils \
libcurl4-openssl-dev \
git \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get -y autoclean
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y -q --no-install-recommends nodejs
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update
RUN apt-get install -y -q --no-install-recommends yarn
RUN mkdir -p /output
RUN mkdir -p /input
RUN mkdir -p /var/www/app/current
WORKDIR ${appDir}
ADD . /var/www/app/current
RUN cd node_middleware && yarn install
RUN cd vue_frontend && yarn install
RUN pip3 install --upgrade pip
RUN cd node_middleware && pip3 install -r python-requirements.txt
ENV PATH="/var/www/app/current:${PATH}"
ENTRYPOINT ["/bin/bash"]
EXPOSE 3000 8080