Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +13 -4
Dockerfile
CHANGED
|
@@ -43,13 +43,22 @@ RUN pip install --no-cache-dir \
|
|
| 43 |
WORKDIR /app
|
| 44 |
|
| 45 |
# Copy the Hugo site files into the container
|
| 46 |
-
COPY ./content/post /app/content/post
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
# Build the Hugo site
|
| 49 |
-
RUN
|
| 50 |
|
| 51 |
# Expose the port the server will run on
|
| 52 |
EXPOSE 7860
|
| 53 |
|
| 54 |
-
# Define the command to run both the
|
| 55 |
-
CMD ["sh", "-c", "
|
|
|
|
| 43 |
WORKDIR /app
|
| 44 |
|
| 45 |
# Copy the Hugo site files into the container
|
| 46 |
+
# COPY ./content/post /app/content/post
|
| 47 |
+
|
| 48 |
+
# # Build the Hugo site
|
| 49 |
+
# RUN cd /app/content/post && hugo
|
| 50 |
+
|
| 51 |
+
# Copy the Hugo content and other files into the container
|
| 52 |
+
COPY ./content /app/content
|
| 53 |
+
COPY ./config/_default/config.toml /app/config.toml
|
| 54 |
+
# COPY ./themes /app/themes
|
| 55 |
+
# COPY ./data /app/data
|
| 56 |
|
| 57 |
# Build the Hugo site
|
| 58 |
+
RUN hugo
|
| 59 |
|
| 60 |
# Expose the port the server will run on
|
| 61 |
EXPOSE 7860
|
| 62 |
|
| 63 |
+
# Define the command to run both the Hugo site and the Hugging Face API
|
| 64 |
+
CMD ["sh", "-c", "hugo server --bind 0.0.0.0 & uvicorn app:app --host 0.0.0.0 --port 7860"]
|