dylankbaker commited on
Commit
4d4579e
·
verified ·
1 Parent(s): fc7515d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -14,7 +14,7 @@ RUN mkdir -p /label-studio/data && \
14
  USER 1001
15
 
16
  # start with local temp storage, although instance data will go to sql database
17
- ENV LABEL_STUDIO_BASE_DATA_DIR=/tmp/label-studio
18
 
19
  # this ostensibly prevents users getting logged out when container restarts
20
  ENV SECRET_KEY=${SECRET_KEY}
@@ -30,7 +30,7 @@ ENV POSTGRES_HOST=${POSTGRES_HOST}
30
  ENV POSTGRES_PORT=${POSTGRES_PORT}
31
 
32
  # copy gcp credentials and boots the app connected to Postgres
33
- CMD sh -c 'mkdir -p /tmp/label-studio && echo "$GCP_SECRET_KEY" > /tmp/gcp-key.json && label-studio'
34
 
35
  ################################################################################
36
  #
 
14
  USER 1001
15
 
16
  # start with local temp storage, although instance data will go to sql database
17
+ ENV LABEL_STUDIO_BASE_DATA_DIR=/tmp
18
 
19
  # this ostensibly prevents users getting logged out when container restarts
20
  ENV SECRET_KEY=${SECRET_KEY}
 
30
  ENV POSTGRES_PORT=${POSTGRES_PORT}
31
 
32
  # copy gcp credentials and boots the app connected to Postgres
33
+ CMD sh -c 'echo "$GCP_SECRET_KEY" > /tmp/gcp-key.json && label-studio'
34
 
35
  ################################################################################
36
  #