Skip to content

Instantly share code, notes, and snippets.

@siumhossain
Created December 5, 2021 14:35
Show Gist options
  • Save siumhossain/f3282daf4b5121745c23f54eb6905bff to your computer and use it in GitHub Desktop.
Save siumhossain/f3282daf4b5121745c23f54eb6905bff to your computer and use it in GitHub Desktop.
Django dockerize hand note
version: '3'
services:
web:
build: .
command: python manage.py runserver 0.0.0.0:8000
ports:
- 8000:8000
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