Skip to content

Commit

Permalink
add heroku files
Browse files Browse the repository at this point in the history
  • Loading branch information
violetaperezandrade committed Apr 7, 2024
1 parent dcc3fad commit 42256c4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
LOGGING_LEVEL=
PORT=
USERS_HOST=
MEASUREMENTS_HOST=
PLANTS_HOST=
14 changes: 14 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM python:3.11-slim-buster
WORKDIR /src

COPY . /src

RUN pip install -r requirements.txt

EXPOSE 5000

COPY ./entrypoint-heroku.sh .

RUN chmod +x ./entrypoint-heroku.sh

CMD ["./entrypoint-heroku.sh"]
3 changes: 3 additions & 0 deletions entrypoint-heroku.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

gunicorn wsgi:app -b 0.0.0.0:5000
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.prod

0 comments on commit 42256c4

Please sign in to comment.