-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker-compose): set up docker compose for local and canned ver…
…sions
- Loading branch information
Showing
6 changed files
with
115 additions
and
375 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,22 @@ | ||
# Use an official Python runtime as a parent image | ||
FROM python:3.7-slim | ||
FROM python:3.9-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 dependencies | ||
RUN apt-get update && apt-get install -y \ | ||
libpq-dev \ | ||
gcc \ | ||
git | ||
|
||
# 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 | ||
|
||
# Command to run the application | ||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] |
File renamed without changes.
Oops, something went wrong.