Spaces:
Runtime error
Runtime error
lol
Browse files- Dockerfile +5 -28
Dockerfile
CHANGED
|
@@ -1,30 +1,7 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
| 3 |
-
# Doesn't usually have an "upgrade"
|
| 4 |
-
RUN apt-get update \
|
| 5 |
-
&& DEBIAN_FRONTEND=noninteractive \
|
| 6 |
-
apt-get install --no-install-recommends --assume-yes \
|
| 7 |
-
build-essential \
|
| 8 |
-
python3 \
|
| 9 |
-
python3-dev \
|
| 10 |
-
python3-pip
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
# install the `aim` package on the latest version
|
| 14 |
-
RUN pip install label-studio
|
| 15 |
-
|
| 16 |
-
# make a directory where the Aim repo will be initialized, `/aim`
|
| 17 |
-
RUN mkdir /label_studio
|
| 18 |
-
|
| 19 |
-
RUN chown 1000:1000 /label_studio
|
| 20 |
-
|
| 21 |
-
ENTRYPOINT ["/bin/sh", "-c"]
|
| 22 |
|
| 23 |
EXPOSE 7860
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
# `aim up` but explicit is better than implicit.
|
| 29 |
-
# CMD ["echo \"N\" | aim init --repo /aim && aim up --host 0.0.0.0 --port 7860 --repo /aim"]
|
| 30 |
-
CMD ["echo \"N\" | label-studio start --port 7860 --host 0.0.0.0 --data-dir /label_studio"]
|
|
|
|
| 1 |
+
FROM heartexlabs/label-studio:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
EXPOSE 7860
|
| 4 |
+
USER 1001
|
| 5 |
+
ENV LABEL_STUDIO_PORT=7860
|
| 6 |
+
ENTRYPOINT ["./deploy/docker-entrypoint.sh"]
|
| 7 |
+
CMD ["label-studio"]
|
|
|
|
|
|
|
|
|