mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
commit
5e24029c08
2 changed files with 3 additions and 12 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# Pull base image
|
# Pull base image
|
||||||
FROM python:3.10.12-alpine3.18
|
FROM python:3.10.12-alpine
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
ENV PYTHONDONTWRITEBYTECODE 1
|
||||||
|
|
@ -9,11 +9,12 @@ ENV PYTHONUNBUFFERED 1
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apt-get update && apt-get install -y netcat-openbsd
|
RUN apk update && apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo netcat-openbsd
|
||||||
|
|
||||||
# Install python dependencies
|
# Install python dependencies
|
||||||
COPY ./requirements/base.txt ./requirements/base.txt
|
COPY ./requirements/base.txt ./requirements/base.txt
|
||||||
RUN pip install --upgrade pip
|
RUN pip install --upgrade pip
|
||||||
|
RUN pip install "cython<3.0.0" && pip install --no-build-isolation pyyaml==6.0
|
||||||
RUN pip install -r requirements/base.txt
|
RUN pip install -r requirements/base.txt
|
||||||
|
|
||||||
# Copy project
|
# Copy project
|
||||||
|
|
|
||||||
|
|
@ -15,13 +15,3 @@ PyJWT==2.7.0
|
||||||
python-dotenv==1.0.0
|
python-dotenv==1.0.0
|
||||||
python-jose==3.3.0
|
python-jose==3.3.0
|
||||||
PyYAML==6.0
|
PyYAML==6.0
|
||||||
rsa==4.9
|
|
||||||
six==1.16.0
|
|
||||||
sniffio==1.3.0
|
|
||||||
starlette==0.27.0
|
|
||||||
typing_extensions==4.7.1
|
|
||||||
uvicorn==0.22.0
|
|
||||||
uvloop==0.17.0
|
|
||||||
watchfiles==0.19.0
|
|
||||||
websockets==11.0.3
|
|
||||||
boto3
|
|
||||||
Loading…
Add table
Reference in a new issue