AstraOS commited on
Commit
2f7e990
·
verified ·
1 Parent(s): 78d30b9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 --ignoreCache && hugo mod clean && hugo mod get
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", "rm -f /app/.hugo_build.lock && hugo server --bind 0.0.0.0 --port 7860 --disableFastRender"]
 
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"]