Skip to content

Commit 8227973

Browse files
committed
add dockerfile for development purposes
1 parent 3cb73f0 commit 8227973

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,3 @@ db.sqlite3
9696
deploy/*.retry
9797
credentials/fsg.pem
9898
dump.rdb
99-
Dockerfile

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Use an official Python runtime as a parent image
2+
FROM python:3.6.4-slim
3+
4+
# Set the working directory to /app
5+
WORKDIR /app
6+
7+
# Copy the current directory contents into the container at /app
8+
ADD . /app
9+
10+
# Install any needed packages specified in requirements.txt
11+
RUN pip install --trusted-host pypi.python.org -r requirements.txt
12+
13+
# Make port 80 available to the world outside this container
14+
EXPOSE 80
15+
16+
# Define environment variable
17+
ENV SECRET_KEY developmentkey
18+
ENV DEBUG True
19+
20+
# Run app.py when the container launches
21+
CMD ["python", "manage.py", "runserver", "0.0.0.0:80"]

0 commit comments

Comments
 (0)