diff options
| author | Bobby <[email protected]> | 2022-07-18 10:34:42 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-07-18 10:34:42 +0530 |
| commit | 31f1050179a3bcfdca14931cd4a11881477d528d (patch) | |
| tree | 420b65b50dc076d97ae331e5408cec7c9d40fcd1 /Dockerfile | |
| parent | 1fd250c061b7ce6f4ad4fb556fd9a10a10d5eb01 (diff) | |
| download | thatcomputerscientist-31f1050179a3bcfdca14931cd4a11881477d528d.tar.xz thatcomputerscientist-31f1050179a3bcfdca14931cd4a11881477d528d.zip | |
Added Fly Deploy Workflow
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..1f8878aa --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +ARG PYTHON_VERSION=3.7 + +FROM python:${PYTHON_VERSION} + +RUN apt-get update && apt-get install -y \ + python3-pip \ + python3-venv \ + python3-dev \ + python3-setuptools \ + python3-wheel + +RUN mkdir -p /app +WORKDIR /app + +COPY requirements.txt . +RUN pip install -r requirements.txt + +COPY . . + +RUN python manage.py collectstatic --noinput + + +EXPOSE 8080 + +# replace APP_NAME with module name +CMD ["gunicorn", "--bind", ":8080", "--workers", "2", "thatcomputerscientist.wsgi"] |
