14 lines
358 B
Docker
14 lines
358 B
Docker
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"]
|