AstraOS commited on
Commit
8e76287
·
verified ·
1 Parent(s): ee1303a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -33,13 +33,13 @@ RUN pip install --no-cache-dir \
33
  WORKDIR /app
34
 
35
  # Copy the Hugo site files into the container
36
- COPY ./hugo-site /app/hugo-site
37
 
38
  # Build the Hugo site (you can change this if needed based on your Hugo site structure)
39
- RUN cd /app/hugo-site && hugo
40
 
41
  # Expose the port the server will run on (adjust as needed for your setup)
42
  EXPOSE 7860
43
 
44
  # Define the command to run both the Hugging Face API server and the Hugo site
45
- CMD ["sh", "-c", "cd /app/hugo-site && hugo server --bind 0.0.0.0 & uvicorn app:app --host 0.0.0.0 --port 7860"]
 
33
  WORKDIR /app
34
 
35
  # Copy the Hugo site files into the container
36
+ COPY ./hugo-site /app/content/post
37
 
38
  # Build the Hugo site (you can change this if needed based on your Hugo site structure)
39
+ RUN cd /app/content/post && hugo
40
 
41
  # Expose the port the server will run on (adjust as needed for your setup)
42
  EXPOSE 7860
43
 
44
  # Define the command to run both the Hugging Face API server and the Hugo site
45
+ CMD ["sh", "-c", "cd /app/content/post && hugo server --bind 0.0.0.0 & uvicorn app:app --host 0.0.0.0 --port 7860"]