18 lines
375 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/
EXPOSE 5002
ENTRYPOINT ["/app/entrypoint.sh"]