Spaces:
Running
Running
test::
Browse files- Dockerfile +5 -12
Dockerfile
CHANGED
@@ -1,15 +1,8 @@
|
|
1 |
-
FROM
|
2 |
-
COPY nginx.conf /etc/nginx/nginx.conf
|
3 |
|
4 |
-
|
|
|
5 |
|
6 |
-
|
7 |
|
8 |
-
|
9 |
-
# PATH=/home/user/.local/bin:$PATH
|
10 |
-
|
11 |
-
# WORKDIR $HOME/app
|
12 |
-
|
13 |
-
# COPY --chown=user . $HOME/app
|
14 |
-
|
15 |
-
# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
+
FROM debian:latest
|
|
|
2 |
|
3 |
+
RUN apt-get update && apt-get install --no-install-recommends -y nginx; \
|
4 |
+
echo "daemon off;" >> /etc/nginx/nginx.conf
|
5 |
|
6 |
+
EXPOSE 80
|
7 |
|
8 |
+
CMD ./usr/sbin/nginx
|
|
|
|
|
|
|
|
|
|
|
|
|
|