Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -38,7 +38,7 @@ RUN chmod -R 777 /app
|
|
| 38 |
RUN rm -f /app/.hugo_build.lock
|
| 39 |
|
| 40 |
# (Optional) If using Hugo Modules, run these commands to clean cache and get modules.
|
| 41 |
-
RUN hugo
|
| 42 |
|
| 43 |
# Build the Hugo site (this will generate the public directory)
|
| 44 |
RUN rm -f /app/.hugo_build.lock && hugo
|
|
@@ -47,4 +47,4 @@ RUN rm -f /app/.hugo_build.lock && hugo
|
|
| 47 |
EXPOSE 7860
|
| 48 |
|
| 49 |
# At container start, remove any stale build lock file and launch the Hugo server
|
| 50 |
-
CMD ["sh", "-c", "
|
|
|
|
| 38 |
RUN rm -f /app/.hugo_build.lock
|
| 39 |
|
| 40 |
# (Optional) If using Hugo Modules, run these commands to clean cache and get modules.
|
| 41 |
+
RUN hugo
|
| 42 |
|
| 43 |
# Build the Hugo site (this will generate the public directory)
|
| 44 |
RUN rm -f /app/.hugo_build.lock && hugo
|
|
|
|
| 47 |
EXPOSE 7860
|
| 48 |
|
| 49 |
# At container start, remove any stale build lock file and launch the Hugo server
|
| 50 |
+
CMD ["sh", "-c", "hugo server --bind 0.0.0.0 --port 7860 --disableFastRender"]
|