mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
testing bullseye image
This commit is contained in:
parent
898e5ca866
commit
e81ca20eec
1 changed files with 2 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
# Pull base image
|
# Pull base image
|
||||||
FROM python:3.10.12-alpine
|
FROM python:3.10-slim-bullseye
|
||||||
|
|
||||||
# Set environment variables
|
# Set environment variables
|
||||||
ENV PYTHONDONTWRITEBYTECODE 1
|
ENV PYTHONDONTWRITEBYTECODE 1
|
||||||
|
|
@ -9,16 +9,11 @@ ENV PYTHONUNBUFFERED 1
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install system dependencies
|
# Install system dependencies
|
||||||
RUN apk update && apk add --no-cache gcc musl-dev python3-dev libffi-dev openssl-dev cargo netcat-openbsd
|
RUN apt-get update && apt-get install -y netcat-openbsd && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
# Install python dependencies
|
# Install python dependencies
|
||||||
# This is required to install pyyaml==6.0 with the alpine image, it's still in the requirements file
|
|
||||||
# but will be skipped over since we've already installed it here
|
|
||||||
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"
|
|
||||||
RUN 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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue