Ramses II commited on
Commit ·
916bcca
1
Parent(s): 6992e29
first deploy
Browse files- Dockerfile +3 -8
Dockerfile
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
|
| 3 |
# Set the working directory to /app
|
| 4 |
WORKDIR /app
|
| 5 |
|
|
@@ -9,8 +8,7 @@ COPY requirements.txt .
|
|
| 9 |
COPY public /app/public
|
| 10 |
|
| 11 |
# Install the dependencies
|
| 12 |
-
RUN pip install -r requirements.txt
|
| 13 |
-
|
| 14 |
# Copy the JupyterLab configuration file
|
| 15 |
COPY jupyter_config.py /etc/jupyterlab/jupyter_config.py
|
| 16 |
|
|
@@ -25,9 +23,6 @@ ENV JUPYTERLAB_TOKEN=your_secret_token
|
|
| 25 |
CMD ["jupyter", "lab", "--port", "8888", "--no-browser", "--allow-root"]
|
| 26 |
|
| 27 |
# Use Nginx as a reverse proxy
|
| 28 |
-
FROM nginx:latest
|
| 29 |
-
|
| 30 |
-
# Copy the Nginx configuration file
|
| 31 |
COPY nginx.conf /etc/nginx/nginx.conf
|
| 32 |
|
| 33 |
# Expose the port 7860 for Nginx
|
|
@@ -37,4 +32,4 @@ EXPOSE 7860
|
|
| 37 |
ENV NGINX_PORT=7860
|
| 38 |
|
| 39 |
# Run Nginx when the container starts
|
| 40 |
-
CMD ["nginx", "-g", "daemon off;"]
|
|
|
|
| 1 |
+
FROM docker.io/library/nginx:latest
|
|
|
|
| 2 |
# Set the working directory to /app
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 8 |
COPY public /app/public
|
| 9 |
|
| 10 |
# Install the dependencies
|
| 11 |
+
RUN apt-get update && apt-get install -y wget && pip install -r requirements.txt
|
|
|
|
| 12 |
# Copy the JupyterLab configuration file
|
| 13 |
COPY jupyter_config.py /etc/jupyterlab/jupyter_config.py
|
| 14 |
|
|
|
|
| 23 |
CMD ["jupyter", "lab", "--port", "8888", "--no-browser", "--allow-root"]
|
| 24 |
|
| 25 |
# Use Nginx as a reverse proxy
|
|
|
|
|
|
|
|
|
|
| 26 |
COPY nginx.conf /etc/nginx/nginx.conf
|
| 27 |
|
| 28 |
# Expose the port 7860 for Nginx
|
|
|
|
| 32 |
ENV NGINX_PORT=7860
|
| 33 |
|
| 34 |
# Run Nginx when the container starts
|
| 35 |
+
CMD ["nginx", "-g", "daemon off;"]
|