Skip to content

Commit

Permalink
new docker file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
thepercyj committed May 14, 2024
1 parent 9b8fcd9 commit 9926098
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 57 deletions.

This file was deleted.

14 changes: 10 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@
# We Use an official Python runtime as a parent image
FROM python:3.9.13

WORKDIR /usr/src/app

ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1

# Allows docker to cache installed dependencies between builds
COPY Bingle/requirements.txt requirements.txt
RUN pip install --upgrade pip
COPY Bingle/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Mounts the application code to the image
COPY . app
WORKDIR /app
COPY . .


EXPOSE 8000

# runs the production server
ENTRYPOINT ["python", "Bingle/manage.py"]
CMD ["runserver", "0.0.0.0:8000d"]
CMD ["runserver", "0.0.0.0:8000"]
15 changes: 0 additions & 15 deletions architect.yml

This file was deleted.

11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: '3'

services:
web:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- .:/usr/src/app

0 comments on commit 9926098

Please sign in to comment.