Fangrui Liu commited on
Commit
3f17c1d
1 Parent(s): 8fe2f31
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,5 +1,7 @@
1
  # Use the official Python 3.9 image
2
- FROM python:3.10
 
 
3
 
4
  # Set the working directory to /code
5
  WORKDIR /code
@@ -24,4 +26,6 @@ WORKDIR $HOME/app
24
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
25
  COPY --chown=user . $HOME/app
26
 
27
- CMD ["python3" "-m" "flask" "run" "-p" "7860" "-h" "0.0.0.0"]
 
 
 
1
  # Use the official Python 3.9 image
2
+ FROM ubuntu/bind9
3
+
4
+ RUN apt-get update && apt-get install -y python3 python3-pip
5
 
6
  # Set the working directory to /code
7
  WORKDIR /code
 
26
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
27
  COPY --chown=user . $HOME/app
28
 
29
+ EXPOSE 7860
30
+
31
+ ENTRYPOINT ["python3" "-m" "flask" "run" "-p" "7860" "-h" "0.0.0.0"]