-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 887 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
FROM ubuntu:18.04
ENV DEBIAN_FRONTEND=noninteractive
## Install ubuntu packages
RUN apt-get update
RUN apt-get install -y postgresql postgis
RUN apt-get install -y python3-pip
RUN apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
RUN apt-get install -y libxml2-dev libxslt1-dev python-dev
RUN apt-get install -y nodejs npm
## Install pipenv
RUN pip3 install pipenv
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
## Adding Pipfiles & Install dependencies
COPY Pipfile Pipfile
COPY Pipfile.lock Pipfile.lock
RUN pipenv install --deploy --system
# Set working directory
RUN mkdir -p /dengue-backend
WORKDIR /dengue-backend
ADD . /dengue-backend/
# Frontend
WORKDIR /dengue-backend/dengue/static
RUN npm install
RUN npm install -g npx
RUN npm run typings install
RUN npx tsc
WORKDIR /dengue-backend
CMD sh ./run.sh