-
-
Notifications
You must be signed in to change notification settings - Fork 269
/
Dockerfile
26 lines (18 loc) · 703 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
# Use an official Python runtime as a parent image
FROM python:3.7-slim
# Set the working directory to /app
WORKDIR /app
# Copy the current directory contents into the container at /app
COPY . /app
# Install psycopg2 dependencies
RUN apt-get update && apt-get install -y libpq-dev
# Install gcc
RUN apt-get update && apt-get install -y gcc
# Install any needed packages specified in requirements.txt
RUN pip install --trusted-host pypi.python.org -r requirements.txt
# Make port 8000 available to the world outside this container
EXPOSE 8000
# Define environment variable
ENV NAME Sefaria-Project
# Run app.py when the container launches
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]