Spaces:
Running
Running
gordon-posit
commited on
Commit
•
9385c54
1
Parent(s):
16fb792
Remove alpine
Browse files- Dockerfile +2 -13
Dockerfile
CHANGED
@@ -15,16 +15,5 @@ RUN pip3 install -r requirements.txt
|
|
15 |
# Use Quarto to render your site
|
16 |
RUN quarto render .
|
17 |
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
# Redirect Apache logs to stdout and stderr
|
22 |
-
RUN ln -sf /dev/stdout /usr/local/apache2/logs/access.log \
|
23 |
-
&& ln -sf /dev/stderr /usr/local/apache2/logs/error.log
|
24 |
-
|
25 |
-
# Configure Apache to listen on a custom port and set ServerName to suppress FQDN warning
|
26 |
-
RUN sed -i 's/Listen 80/Listen 7860/' /usr/local/apache2/conf/httpd.conf \
|
27 |
-
&& echo "ServerName localhost" >> /usr/local/apache2/conf/httpd.conf
|
28 |
-
|
29 |
-
COPY --from=builder /app/_site/ /usr/local/apache2/htdocs/
|
30 |
-
EXPOSE 7860
|
|
|
15 |
# Use Quarto to render your site
|
16 |
RUN quarto render .
|
17 |
|
18 |
+
EXPOSE 7860
|
19 |
+
CMD ["python", "-m", "http.server", "7860", "--directory", "_site"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|