Update Dockerfile
Browse files- Dockerfile +16 -1
Dockerfile
CHANGED
@@ -1,2 +1,17 @@
|
|
1 |
FROM runpod/stable-diffusion:comfy-ui-6.0.0
|
2 |
-
RUN apt-get update
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
FROM runpod/stable-diffusion:comfy-ui-6.0.0
|
2 |
+
RUN apt-get update
|
3 |
+
# Use a base image with Git installed
|
4 |
+
FROM alpine:latest
|
5 |
+
|
6 |
+
# Install required packages
|
7 |
+
RUN apk add --no-cache git
|
8 |
+
|
9 |
+
# Set the working directory
|
10 |
+
WORKDIR /workspace/ComfyUI
|
11 |
+
|
12 |
+
# Clone the repository and checkout the latest tag
|
13 |
+
RUN git pull \
|
14 |
+
&& latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`) \
|
15 |
+
&& git checkout $latest_tag
|
16 |
+
|
17 |
+
# Continue with other steps (e.g., build, install dependencies, etc.)
|