nateraw commited on
Commit
bf90b4b
·
1 Parent(s): 8d062f4
Files changed (1) hide show
  1. Dockerfile +5 -28
Dockerfile CHANGED
@@ -1,30 +1,7 @@
1
- FROM ubuntu:kinetic
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
- # have to run `aim init` in the directory that stores aim data for
25
- # otherwise `aim up` will prompt for confirmation to create the directory itself.
26
- # We run aim listening on 0.0.0.0 to expose all ports. Also, we run
27
- # using `--dev` to print verbose logs. Port 43800 is the default port of
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"]