add docker compose setup
This commit is contained in:
parent
19ea3a3e7d
commit
0d205ebd5e
3 changed files with 111 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue