Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -21,6 +21,7 @@ RUN apt-get update && \
|
|
| 21 |
# Install code-server
|
| 22 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 23 |
|
|
|
|
| 24 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
| 25 |
|
| 26 |
# Create a user to run code-server
|
|
@@ -34,6 +35,9 @@ WORKDIR /home/coder/genz
|
|
| 34 |
# Change ownership of the working directory
|
| 35 |
RUN chown -R coder:coder /home/coder/genz
|
| 36 |
|
|
|
|
|
|
|
|
|
|
| 37 |
# Create code-server configuration directory
|
| 38 |
RUN mkdir -p /home/coder/.config/code-server
|
| 39 |
|
|
@@ -51,11 +55,11 @@ RUN chown -R coder:coder /home/coder/.config
|
|
| 51 |
EXPOSE 8080
|
| 52 |
|
| 53 |
# Define a volume for the genz folder
|
| 54 |
-
#VOLUME /home/coder/genz #
|
| 55 |
|
| 56 |
# Switch to the coder user for running code-server
|
| 57 |
USER coder
|
| 58 |
-
WORKDIR /genz
|
| 59 |
# Start code-server
|
| 60 |
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]
|
| 61 |
|
|
|
|
| 21 |
# Install code-server
|
| 22 |
RUN curl -fsSL https://code-server.dev/install.sh | sh
|
| 23 |
|
| 24 |
+
# Install ollama
|
| 25 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
| 26 |
|
| 27 |
# Create a user to run code-server
|
|
|
|
| 35 |
# Change ownership of the working directory
|
| 36 |
RUN chown -R coder:coder /home/coder/genz
|
| 37 |
|
| 38 |
+
# Clone the roop repository
|
| 39 |
+
RUN git clone https://github.com/s0md3v/roop.git /home/coder/genz/roop
|
| 40 |
+
|
| 41 |
# Create code-server configuration directory
|
| 42 |
RUN mkdir -p /home/coder/.config/code-server
|
| 43 |
|
|
|
|
| 55 |
EXPOSE 8080
|
| 56 |
|
| 57 |
# Define a volume for the genz folder
|
| 58 |
+
#VOLUME /home/coder/genz # Uncomment if you want to use a volume
|
| 59 |
|
| 60 |
# Switch to the coder user for running code-server
|
| 61 |
USER coder
|
| 62 |
+
WORKDIR /home/coder/genz
|
| 63 |
# Start code-server
|
| 64 |
CMD ["code-server", "--bind-addr", "0.0.0.0:7860", "--auth", "none"]
|
| 65 |
|