forked from Map-A-Droid/MAD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 950 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
# Basic docker image
# Usage:
# docker build -t pogomad . # Build the docker Image
# docker run -d pogomad start.py # Launch Server
FROM python:3.7.1-slim
# Default ports for PogoDroid, RGC and MAdmin
EXPOSE 8080 8000 5000
# Working directory for the application
WORKDIR /usr/src/app
# Set Entrypoint with hard-coded options
ENTRYPOINT ["python"]
CMD ["./start.py"]
# Install required system packages
RUN apt-get update && apt-get install -y --no-install-recommends libgeos-dev build-essential
RUN apt-get update && apt-get -y install libglib2.0-0 default-libmysqlclient-dev
RUN apt-get update && apt-get -y install tesseract-ocr libtesseract-dev
RUN apt-get -y install tk
RUN apt-get update
COPY requirements.txt /usr/src/app/
RUN apt-get update && apt-get install -y git && pip install -r requirements.txt
# Copy everything to the working directory (Python files, templates, config) in one go.
COPY . /usr/src/app/