Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -13,7 +13,8 @@ ENV SOURCE_BRANCH=${SOURCE_BRANCH} \
|
|
| 13 |
EXPORT_DIR=/data/exports \
|
| 14 |
GENERATED_DIR=/data/generated \
|
| 15 |
BACKUP_INTERVAL_SECONDS=3600 \
|
| 16 |
-
ADMINER_VERSION=4.8.1
|
|
|
|
| 17 |
|
| 18 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 19 |
git \
|
|
@@ -37,7 +38,8 @@ WORKDIR /bootstrap
|
|
| 37 |
# This Space keeps only README.md and this Dockerfile.
|
| 38 |
# At every container start, fetch the private GitHub repository root into /app,
|
| 39 |
# remove repository-only files, validate the API routes, and launch the service.
|
| 40 |
-
|
|
|
|
| 41 |
: \"${GITHUB_TOKEN:?GITHUB_TOKEN is required as a Hugging Face Space Secret}\"; \
|
| 42 |
: \"${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required as a Hugging Face Space Secret}\"; \
|
| 43 |
TOKEN=\"${GITHUB_TOKEN}\"; \
|
|
|
|
| 13 |
EXPORT_DIR=/data/exports \
|
| 14 |
GENERATED_DIR=/data/generated \
|
| 15 |
BACKUP_INTERVAL_SECONDS=3600 \
|
| 16 |
+
ADMINER_VERSION=4.8.1 \
|
| 17 |
+
PATH=/usr/lib/postgresql/17/bin:${PATH}
|
| 18 |
|
| 19 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 20 |
git \
|
|
|
|
| 38 |
# This Space keeps only README.md and this Dockerfile.
|
| 39 |
# At every container start, fetch the private GitHub repository root into /app,
|
| 40 |
# remove repository-only files, validate the API routes, and launch the service.
|
| 41 |
+
# Use a non-login shell so /etc/profile cannot replace the PostgreSQL image PATH.
|
| 42 |
+
CMD ["bash", "-c", "set -euo pipefail; \
|
| 43 |
: \"${GITHUB_TOKEN:?GITHUB_TOKEN is required as a Hugging Face Space Secret}\"; \
|
| 44 |
: \"${POSTGRES_PASSWORD:?POSTGRES_PASSWORD is required as a Hugging Face Space Secret}\"; \
|
| 45 |
TOKEN=\"${GITHUB_TOKEN}\"; \
|