You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
385 B
17 lines
385 B
FROM fnndsc/python-poetry
|
|
|
|
WORKDIR /app/
|
|
|
|
# plz install everything globally in docker
|
|
RUN apt-get update && apt-get install -y build-essential
|
|
RUN poetry config virtualenvs.create false
|
|
|
|
# install our dependencies first
|
|
COPY pyproject.toml poetry.lock /app/
|
|
|
|
RUN poetry install --no-dev
|
|
|
|
# now copy over everything
|
|
COPY . /app/
|
|
|
|
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
|