-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
50 lines (37 loc) · 1.71 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
46
47
48
49
50
FROM ubuntu:18.04
MAINTAINER Steven Skoczen <[email protected]>
# Set up the directory for the codebase link.
RUN mkdir -p /project
RUN mkdir -p /project/inkshop
VOLUME /project/inkshop
# Update the OS
RUN apt-get update
# Handle tzdata in non-interative mode.
RUN export DEBIAN_FRONTEND=noninteractive; apt-get install -y tzdata; ln -fs /usr/share/zoneinfo/UTC /etc/localtime; dpkg-reconfigure --frontend noninteractive tzdata
# Install the base languages & tools
RUN apt-get install -y curl git nginx python3 python3-pip npm python3-setuptools libpq-dev python3-dev libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev postgresql python-tk libmemcached-dev nodejs libncurses5-dev libffi-dev nano
WORKDIR /project
# Install node globals, pip
RUN pip3 install --upgrade pip
# Set up reqs
ADD requirements.unstable.txt /project/requirements.unstable.txt
ADD requirements.txt /project/requirements.txt
# RUN pip3 install -r /project/requirements.unstable.txt # && pip3 uninstall pycrypto && pip3 install pycryptodome # Aug 11 2020
RUN pip3 install -r /project/requirements.txt --use-feature=fast-deps --use-deprecated=legacy-resolver # Nov 2 2021
# --use-feature=fast-deps --use-deprecated=legacy-resolver # Oct 5 2020
# pip3 freeze -r requirements.unstable.txt > requirements.txt
# Remove pygobject
# Add less and NPM packages.
# ADD package.json /project/package.json
RUN npm i -g less
# Add procfile (for honcho)
ADD Procfile /project/Procfile
# pulls beat
ADD Procfile.dev /project/Procfile.dev
ADD manage.py /project/manage.py
# For polytester
ADD tests.yml /project/tests.yml
# For initial data
ADD initial_data.yml /project/initial_data.yml
EXPOSE 8120
WORKDIR /project