- Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
Latest commit
16 lines (13 loc) · 420 Bytes
/
Copy pathDockerfile
File metadata and controls
16 lines (13 loc) · 420 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.9
# install poetry
RUN pip install poetry
# copy project requirement files here to ensure they will be cached.
WORKDIR /root
ADD app/ app/
COPY docker/entrypoint.sh poetry.lock pyproject.toml alembic.ini ./
# install runtime deps - uses $POETRY_VIRTUALENVS_IN_PROJECT internally
ENV POETRY_VIRTUALENVS_IN_PROJECT true
RUN poetry install
EXPOSE 5000
# Use heroku entrypoint
CMD ["bash", "entrypoint.sh"]