forked from pannal/Kitana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (24 loc) · 783 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
# Use an official Python runtime as a parent image
FROM python:3.5-slim
# Set the working directory to /app
WORKDIR /app
RUN apt-get update \
&& apt-get install -y \
apt-utils \
gcc \
g++ \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt /app
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt \
&& apt-get purge -y --auto-remove gcc g++
# Copy the current directory contents into the container at /app
COPY . /app
# Make port 80 available to the world outside this container
EXPOSE 31337
# Define environment variable
#ENV NAME World
VOLUME /app/data
# Run app.py when the container launches
ENTRYPOINT ["python", "kitana.py"]