forked from OnroerendErfgoed/atramhasis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (37 loc) · 1.47 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
43
44
45
FROM ubuntu:16.04
COPY . /app
WORKDIR /app
########################################################### ENVIRONMENT: base ################################################
USER root
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:jonathonf/python-3.6
RUN apt-get update
RUN apt-get install -y build-essential python3.6 python3.6-dev python3-pip python3.6-venv
RUN python3.6 -m pip install pip --upgrade
RUN python3.6 -m pip install --upgrade setuptools
########################################################### Application needed: ################################################
# ------- Install additionnal libraries with "apt-get -y"
# RUN apt-get install -y libsm6 libxext6 libglib2.0-0 libxrender-dev
RUN apt-get install -y python-software-properties
RUN apt-get install -y curl
RUN apt-get install -y git
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
RUN apt-get install -y nodejs
RUN npm install -g bower
RUN npm install -g grunt-cli
# ------- Or annd needed libraries into "requirements.txt" file and use it:
RUN python3.6 -m pip install -r requirements-dev.txt
RUN python3.6 setup.py develop
RUN alembic upgrade head
RUN cd atramhasis/static && \
bower install --allow-root && \
cd admin && \
bower install --allow-root && \
npm install && \
grunt build
RUN python3.6 setup.py compile_catalog
RUN python3.6 setup.py develop
RUN alembic upgrade head
EXPOSE 6543
ENTRYPOINT ["pserve", "development.ini"]