Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- 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/
|
| 37 |
|
| 38 |
# Build the Hugo site (you can change this if needed based on your Hugo site structure)
|
| 39 |
-
RUN cd /app/
|
| 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/
|
|
|
|
| 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"]
|