Update Dockerfile
Browse files- Dockerfile +8 -9
Dockerfile
CHANGED
|
@@ -18,17 +18,16 @@ RUN adduser -D -u 10001 appuser && chown appuser:appuser /app
|
|
| 18 |
|
| 19 |
COPY --from=builder --chown=appuser:appuser /out/creepurl ./creepurl
|
| 20 |
|
| 21 |
-
# HuggingFace
|
| 22 |
-
ENV PORT=7860
|
| 23 |
-
ENV DB_PATH=./creepurl.db
|
| 24 |
-
ENV ENVIRONMENT=production
|
| 25 |
-
# IMPORTANT: Set BASE_URL to your actual HF Space URL in the Space settings
|
| 26 |
-
# e.g. BASE_URL=https://dipan004-creepurl.hf.space
|
| 27 |
-
# This makes generated short links point to the right domain
|
| 28 |
-
ENV BASE_URL=https://www.creepurl-xr77stvr.2bd.net
|
| 29 |
-
|
| 30 |
EXPOSE 7860
|
| 31 |
|
| 32 |
USER appuser
|
| 33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
CMD ["./creepurl"]
|
|
|
|
| 18 |
|
| 19 |
COPY --from=builder --chown=appuser:appuser /out/creepurl ./creepurl
|
| 20 |
|
| 21 |
+
# Port HuggingFace requires
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
USER appuser
|
| 25 |
|
| 26 |
+
# NO ENV lines here — all vars must be set in HF Space Settings
|
| 27 |
+
# Required vars to set in HF Space Settings:
|
| 28 |
+
# PORT=7860
|
| 29 |
+
# DB_PATH=./creepurl.db
|
| 30 |
+
# BASE_URL=https://www.creepurl-xr77stvr.2bd.net
|
| 31 |
+
# ENVIRONMENT=production
|
| 32 |
+
|
| 33 |
CMD ["./creepurl"]
|