Spaces:
Sleeping
Sleeping
Mike W commited on
Commit ·
1a93a30
1
Parent(s): 2f10ec0
Fix GOOGLE_APPLICATION_CREDENTIALS in Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -16,10 +16,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
# Expose the port the app runs on
|
| 19 |
-
EXPOSE
|
| 20 |
|
| 21 |
# This new CMD line creates the creds file from the secret before starting the app
|
| 22 |
CMD /bin/bash -c "echo \"$GOOGLE_APPLICATION_CREDENTIALS\" > /tmp/gcp_creds.json && export GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcp_creds.json && uvicorn server:app --host 0.0.0.0 --port 7860"
|
| 23 |
|
| 24 |
# Command to run the application (orinally created by Jules)
|
| 25 |
-
# CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
# Expose the port the app runs on
|
| 19 |
+
EXPOSE 7860
|
| 20 |
|
| 21 |
# This new CMD line creates the creds file from the secret before starting the app
|
| 22 |
CMD /bin/bash -c "echo \"$GOOGLE_APPLICATION_CREDENTIALS\" > /tmp/gcp_creds.json && export GOOGLE_APPLICATION_CREDENTIALS=/tmp/gcp_creds.json && uvicorn server:app --host 0.0.0.0 --port 7860"
|
| 23 |
|
| 24 |
# Command to run the application (orinally created by Jules)
|
| 25 |
+
# CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|