add docker compose setup

This commit is contained in:
Waylon Walker 2023-06-02 15:52:12 -05:00
parent 19ea3a3e7d
commit 0d205ebd5e
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
3 changed files with 111 additions and 0 deletions

14
Dockerfile Normal file
View file

@ -0,0 +1,14 @@
from python:3.10
# install python and psycopg2
# RUN apt-get update && apt-get install -y python3 python3-pip
# RUN pip3 install hatch
WORKDIR /app
Copy pyproject.toml /app
COPY learn_sql_model/__about__.py /app/learn_sql_model/__about__.py
COPY README.md /app
RUN pip3 install .
COPY . /app
RUN pip3 install .
ENTRYPOINT ["learn-sql-model", "api", "run"]