AstraOS commited on
Commit
459a4a6
·
verified ·
1 Parent(s): 8a68851

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -33,7 +33,7 @@ COPY . .
33
  RUN chmod -R 777 /app
34
 
35
  # Remove any stale Hugo build lock file
36
- RUN rm -f /app/.hugo_build.lock
37
 
38
  # Change ownership of /app to avoid permission issues
39
  RUN useradd -m hugo && chown -R hugo:hugo /app
@@ -43,7 +43,7 @@ USER hugo
43
  # RUN hugo mod tidy
44
 
45
  # Build the Hugo site with --noTimes
46
- RUN hugo --noTimes
47
 
48
  # Expose the port the Hugo server will use
49
  EXPOSE 7860
@@ -51,4 +51,4 @@ EXPOSE 7860
51
  # Start the Hugo server with --noTimes (and other flags)
52
  # CMD ["hugo", "server", "--bind", "0.0.0.0", "--port", "7860", "--appendPort=true", "--disableFastRender", "--noBuildLock", "--noTimes", "--bind=127.0.0.1", "baseURL=https://astraos-test.hf.space/"]
53
  # CMD ["hugo", "server", "--bind", "0.0.0.0", "--port", "7860", "--appendPort=false", "--disableFastRender", "--noBuildLock", "--noTimes", "--bind=127.0.0.1"]
54
- CMD ["hugo", "server", "--bind", "0.0.0.0", "--port", "7860", "--disableFastRender", "--noBuildLock", "--noTimes"]
 
33
  RUN chmod -R 777 /app
34
 
35
  # Remove any stale Hugo build lock file
36
+ # RUN rm -f /app/.hugo_build.lock
37
 
38
  # Change ownership of /app to avoid permission issues
39
  RUN useradd -m hugo && chown -R hugo:hugo /app
 
43
  # RUN hugo mod tidy
44
 
45
  # Build the Hugo site with --noTimes
46
+ # RUN hugo --noTimes
47
 
48
  # Expose the port the Hugo server will use
49
  EXPOSE 7860
 
51
  # Start the Hugo server with --noTimes (and other flags)
52
  # CMD ["hugo", "server", "--bind", "0.0.0.0", "--port", "7860", "--appendPort=true", "--disableFastRender", "--noBuildLock", "--noTimes", "--bind=127.0.0.1", "baseURL=https://astraos-test.hf.space/"]
53
  # CMD ["hugo", "server", "--bind", "0.0.0.0", "--port", "7860", "--appendPort=false", "--disableFastRender", "--noBuildLock", "--noTimes", "--bind=127.0.0.1"]
54
+ CMD ["hugo", "server", "--bind", "0.0.0.0", "--port", "7860", "--disableFastRender"]