fix dockerfile error
Browse files- Dockerfile +1 -4
Dockerfile
CHANGED
|
@@ -23,7 +23,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 23 |
RUN pip install git+https://github.com/huggingface/transformers@8fb854cac869b42c87a7bd15d9298985c5aea96e
|
| 24 |
|
| 25 |
RUN --mount=type=secret,id=SECRET_KEY,mode=0444,required=true \
|
| 26 |
-
|
| 27 |
|
| 28 |
RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,mode=0444,required=true \
|
| 29 |
sh -c 'printf "HUGGINGFACEHUB_API_TOKEN=%s\n" "$(cat /run/secrets/HUGGINGFACEHUB_API_TOKEN)" >> .env'
|
|
@@ -37,9 +37,6 @@ RUN printf "CSRF_TRUSTED_ORIGINS=%s\n" "${CSRF_TRUSTED_ORIGINS}" >> .env
|
|
| 37 |
# Copy the entire backend directory
|
| 38 |
COPY . .
|
| 39 |
|
| 40 |
-
# Collect static files (if needed)
|
| 41 |
-
RUN python manage.py collectstatic --noinput || true
|
| 42 |
-
|
| 43 |
# Run database migrations
|
| 44 |
RUN python manage.py migrate --noinput || true
|
| 45 |
|
|
|
|
| 23 |
RUN pip install git+https://github.com/huggingface/transformers@8fb854cac869b42c87a7bd15d9298985c5aea96e
|
| 24 |
|
| 25 |
RUN --mount=type=secret,id=SECRET_KEY,mode=0444,required=true \
|
| 26 |
+
sh -c 'printf "SECRET_KEY=%s\n" "$(cat /run/secrets/SECRET_KEY)" >> .env'
|
| 27 |
|
| 28 |
RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,mode=0444,required=true \
|
| 29 |
sh -c 'printf "HUGGINGFACEHUB_API_TOKEN=%s\n" "$(cat /run/secrets/HUGGINGFACEHUB_API_TOKEN)" >> .env'
|
|
|
|
| 37 |
# Copy the entire backend directory
|
| 38 |
COPY . .
|
| 39 |
|
|
|
|
|
|
|
|
|
|
| 40 |
# Run database migrations
|
| 41 |
RUN python manage.py migrate --noinput || true
|
| 42 |
|