1 Star 0 Fork 0

小儿幽梦/Modified-Label-Studio

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 987 Bytes
一键复制 编辑 原始数据 按行查看 历史
Prajit-Sengupta 提交于 2022-06-22 22:50 . Added new Project
# syntax=docker/dockerfile:1.3
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive \
PIP_CACHE_DIR=/.cache
WORKDIR /label-studio
# install packages
RUN set -eux; \
apt-get update && apt-get install --no-install-recommends --no-install-suggests -y \
build-essential postgresql-client libmysqlclient-dev mysql-client python3.8 python3-pip python3.8-dev \
uwsgi git libxml2-dev libxslt-dev zlib1g-dev
RUN --mount=type=cache,target=$PIP_CACHE_DIR \
pip3 install --upgrade pip setuptools && pip3 install uwsgi
# Copy and install requirements.txt first for caching
COPY deploy/requirements.txt /label-studio
RUN --mount=type=cache,target=$PIP_CACHE_DIR \
pip3 install -r requirements.txt
ENV DJANGO_SETTINGS_MODULE=core.settings.label_studio
ENV LABEL_STUDIO_BASE_DATA_DIR=/label-studio/data
COPY . /label-studio
RUN python3.8 setup.py develop
EXPOSE 8080
RUN ./deploy/prebuild_wo_frontend.sh
ENTRYPOINT ["./deploy/docker-entrypoint.sh"]
CMD ["label-studio"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/childrens-dream/Modified-Label-Studio.git
git@gitee.com:childrens-dream/Modified-Label-Studio.git
childrens-dream
Modified-Label-Studio
Modified-Label-Studio
dependabot/github_actions/actions/cache-3.0.11

搜索帮助