halfapi/Dockerfile

13 lines
344 B
Docker
Raw Permalink Normal View History

2021-10-12 03:13:25 +02:00
# syntax=docker/dockerfile:1
FROM docker.io/python:3.8.12-slim-bullseye
COPY . /halfapi
WORKDIR /halfapi
2021-10-12 18:16:16 +02:00
RUN apt-get update > /dev/null && apt-get -y install git > /dev/null
2021-10-12 18:08:07 +02:00
RUN pip install gunicorn uvicorn
# Install package with extra_requires for testing
RUN pip install ".[tests]"
ENV PYTHONPATH=./tests
RUN pytest
2021-10-12 03:13:25 +02:00
CMD gunicorn halfapi.app