Created
December 5, 2021 14:35
-
-
Save siumhossain/f3282daf4b5121745c23f54eb6905bff to your computer and use it in GitHub Desktop.
Django dockerize hand note
This file contains hidden or 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
| version: '3' | |
| services: | |
| web: | |
| build: . | |
| command: python manage.py runserver 0.0.0.0:8000 | |
| ports: | |
| - 8000:8000 |
This file contains hidden or 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
| FROM python:3 | |
| ENV PYTHONUNBUFFERED 1 | |
| WORKDIR /app | |
| ADD . /app | |
| COPY ./requirements.txt /app/requirements.txt | |
| RUN pip install -r requirements.txt | |
| COPY . /app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment