forked from fossasia/open-event-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (19 loc) · 807 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
FROM python:3.6
LABEL maintainer="Niranjan Rajendran <[email protected]>"
ENV INSTALL_PATH /open_event
RUN mkdir -p $INSTALL_PATH
WORKDIR $INSTALL_PATH
# apt-get update and update some packages
RUN apt-get update && apt-get install -y wget git ca-certificates curl && update-ca-certificates && apt-get clean -y
# install deps
RUN apt-get install -y --no-install-recommends build-essential python3-dev python3-setuptools libpq-dev libevent-dev libmagic-dev libssl-dev python3-pip libffi6 libffi-dev && apt-get clean -y
# copy just requirements
COPY requirements.txt requirements.txt
COPY requirements requirements
# install requirements
RUN pip3 install --no-cache-dir -r requirements.txt
RUN pip3 install eventlet
RUN pip3 install colour
# copy remaining files
COPY . .
CMD bash scripts/docker_run.sh