Skip to content

Commit

Permalink
chore(docker-compose): set up docker compose for local and canned ver…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
akiva10b committed Dec 12, 2024
1 parent 3735d3c commit 43f537f
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 375 deletions.
350 changes: 0 additions & 350 deletions dev-docker/local_settings.py

This file was deleted.

16 changes: 9 additions & 7 deletions dev-docker/Dockerfile → dev_docker/Dockerfile
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.
Loading

0 comments on commit 43f537f

Please sign in to comment.