fixed Dockerfile x2
This commit is contained in:
parent
d5446ba359
commit
270c32ba9d
1 changed files with 17 additions and 0 deletions
|
|
@ -1,10 +1,27 @@
|
|||
FROM python:3.12-slim
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get install -y --no-install-recommends \
|
||||
build-essential \
|
||||
cmake \
|
||||
pkg-config \
|
||||
git
|
||||
|
||||
COPY ./docker_requirements.txt /requirements.txt
|
||||
|
||||
RUN pip install "cython<3.0.0" wheel
|
||||
|
||||
RUN pip install "pyyaml==6.0.2" --no-build-isolation
|
||||
|
||||
RUN pip install -r /requirements.txt
|
||||
|
||||
COPY . /app
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENTRYPOINT ["python"]
|
||||
|
||||
CMD ["src/app.py"]
|
||||
|
||||
# ENTRYPOINT ["sh", "src/entrypoint.sh"] # WSGI - gunicorn prod run
|
||||
Loading…
Reference in a new issue