update dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
CHANGED
|
@@ -22,6 +22,21 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 22 |
# Install specific transformers
|
| 23 |
RUN pip install git+https://github.com/huggingface/transformers@8fb854cac869b42c87a7bd15d9298985c5aea96e
|
| 24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
# Copy the entire backend directory
|
| 26 |
COPY . .
|
| 27 |
|
|
|
|
| 22 |
# Install specific transformers
|
| 23 |
RUN pip install git+https://github.com/huggingface/transformers@8fb854cac869b42c87a7bd15d9298985c5aea96e
|
| 24 |
|
| 25 |
+
RUN --mount=type=secret,id=SECRET_KEY,env=SECRET_KEY
|
| 26 |
+
RUN --mount=type=secret,id=HUGGINGFACEHUB_API_TOKEN,env=HUGGINGFACEHUB_API_TOKEN
|
| 27 |
+
|
| 28 |
+
RUN --mount=type=secret,id=DEBUG,env=DEBUG
|
| 29 |
+
RUN --mount=type=secret,id=SESSION_COOKIE_SECURE,env=SESSION_COOKIE_SECURE
|
| 30 |
+
RUN --mount=type=secret,id=CSRF_COOKIE_SECURE,env=CSRF_COOKIE_SECURE
|
| 31 |
+
RUN --mount=type=secret,id=ALLOWED_HOSTS,env=ALLOWED_HOSTS
|
| 32 |
+
RUN --mount=type=secret,id=SECURE_CONTENT_TYPE_NOSNIFF,env=SECURE_CONTENT_TYPE_NOSNIFF
|
| 33 |
+
RUN --mount=type=secret,id=SECURE_SSL_REDIRECT,env=SECURE_SSL_REDIRECT
|
| 34 |
+
RUN --mount=type=secret,id=SECURE_HSTS_SECONDS,env=SECURE_HSTS_SECONDS
|
| 35 |
+
RUN --mount=type=secret,id=SECURE_HSTS_INCLUDE_SUBDOMAINS,env=SECURE_HSTS_INCLUDE_SUBDOMAINS
|
| 36 |
+
RUN --mount=type=secret,id=SECURE_HSTS_PRELOAD,env=SECURE_HSTS_PRELOAD
|
| 37 |
+
RUN --mount=type=secret,id=CORS_ALLOW_ALL_ORIGINS,env=CORS_ALLOW_ALL_ORIGINS
|
| 38 |
+
RUN --mount=type=secret,id=CSRF_TRUSTED_ORIGINS,env=CSRF_TRUSTED_ORIGINS
|
| 39 |
+
|
| 40 |
# Copy the entire backend directory
|
| 41 |
COPY . .
|
| 42 |
|