Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Update Dockerfile
Browse files- 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
|
| 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 '
|
| 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 |
#
|