Skip to content

Commit

Permalink
Converted the project to be container based.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhedegaard committed Apr 30, 2021
1 parent 1fe4106 commit 6ba3d7c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
FROM django:onbuild
MAINTAINER dennis@dhedegaard.dk
EXPOSE 8000
CMD python manage.py migrate && python manage.py runserver 0.0.0.0:8000
FROM python:3.6

COPY . ./
RUN pip install -r requirements.txt

ENV PORT 8080
EXPOSE ${PORT}

RUN python manage.py test && \
python manage.py collectstatic -c --noinput

CMD python manage.py migrate && \
gunicorn urls.wsgi
3 changes: 3 additions & 0 deletions heroku.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build:
docker:
web: Dockerfile

0 comments on commit 6ba3d7c

Please sign in to comment.