emidiosouza commited on
Commit
44ae54a
verified
1 Parent(s): 47e05f1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -124,7 +124,11 @@ FROM heartexlabs/label-studio:latest
124
  #
125
  ################################################################################
126
 
127
- # Adiciona o script de cria莽茫o de credenciais diretamente para um diret贸rio acess铆vel
128
- COPY create_gcs_credentials.sh /app/create_gcs_credentials.sh
129
 
130
- CMD /app/create_gcs_credentials.sh && exec label-studio --host=$SPACE_HOST
 
 
 
 
 
124
  #
125
  ################################################################################
126
 
127
+ # Define environment variable for Google application credentials
128
+ ENV GOOGLE_APPLICATION_CREDENTIALS_JSON=""
129
 
130
+ # Criar o diret贸rio e o arquivo de credenciais diretamente no Dockerfile
131
+ RUN mkdir -p /opt/heartex/secrets && \
132
+ echo "$GOOGLE_APPLICATION_CREDENTIALS_JSON" > /opt/heartex/secrets/key.json
133
+
134
+ CMD exec label-studio --host=$SPACE_HOST