mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-01-19 13:23:23 +08:00
24 lines
578 B
Docker
24 lines
578 B
Docker
# pull official base image
|
|
FROM python:3.11-slim
|
|
|
|
# set working directory
|
|
WORKDIR /usr/src/app
|
|
|
|
# set environment variables
|
|
ENV PYTHONDONTWRITEBYTECODE 1
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
# install system dependencies
|
|
RUN apt-get update \
|
|
&& apt-get -y install build-essential netcat-traditional gcc \
|
|
&& apt-get clean
|
|
|
|
# install python dependencies
|
|
RUN pip install --upgrade pip setuptools wheel -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
RUN pip install pipenv -i https://pypi.tuna.tsinghua.edu.cn/simple
|
|
COPY ./Pipfile .
|
|
RUN pipenv install --deploy --dev
|
|
|
|
# add app
|
|
COPY . .
|