mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-08 16:37:29 +08:00
update
This commit is contained in:
parent
4c503415a6
commit
4f1e842b7c
@ -3,7 +3,7 @@
|
|||||||
###########
|
###########
|
||||||
|
|
||||||
# pull official base image
|
# pull official base image
|
||||||
FROM python:3.11-alpine as builder
|
FROM python:3.11-slim-bookworm AS builder
|
||||||
|
|
||||||
|
|
||||||
# set working directory
|
# set working directory
|
||||||
@ -14,12 +14,10 @@ ENV PYTHONDONTWRITEBYTECODE=1
|
|||||||
ENV PYTHONUNBUFFERED=1
|
ENV PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
# install system dependencies
|
# install system dependencies
|
||||||
RUN apt-get update \
|
RUN apt-get update && apt-get -y install build-essential \
|
||||||
&& apt-get -y install build-essential \
|
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
||||||
# install python dependencies
|
# install python dependencies
|
||||||
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && rm -rf ~/.cache/pip
|
RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv && rm -rf ~/.cache/pip
|
||||||
COPY ./Pipfile .
|
COPY ./Pipfile .
|
||||||
@ -37,7 +35,7 @@ COPY . /usr/src/app
|
|||||||
#########
|
#########
|
||||||
|
|
||||||
# pull official base image
|
# pull official base image
|
||||||
FROM python:3.11-alpine
|
FROM python:3.11-slim-bookworm
|
||||||
|
|
||||||
# create directory for the app user
|
# create directory for the app user
|
||||||
RUN mkdir -p /home/app
|
RUN mkdir -p /home/app
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user