Delete Dockerfile
Browse files- Dockerfile +0 -29
Dockerfile
DELETED
|
@@ -1,29 +0,0 @@
|
|
| 1 |
-
# Stage 1: Build Stage
|
| 2 |
-
FROM diegogslomp/samba-ad-dc AS builder
|
| 3 |
-
|
| 4 |
-
# Install dependencies using apk (Alpine's package manager)
|
| 5 |
-
RUN apk update && \
|
| 6 |
-
apk add --no-cache \
|
| 7 |
-
python3 \
|
| 8 |
-
py3-pip \
|
| 9 |
-
python3-dev \
|
| 10 |
-
libsasl \
|
| 11 |
-
libldap \
|
| 12 |
-
libressl-dev \
|
| 13 |
-
build-base && \
|
| 14 |
-
pip3 install gradio ldap3
|
| 15 |
-
|
| 16 |
-
# Stage 2: Final Image
|
| 17 |
-
FROM diegogslomp/samba-ad-dc
|
| 18 |
-
|
| 19 |
-
# Copy the configuration files from the build stage
|
| 20 |
-
COPY --from=builder /etc/samba/smb.conf /etc/samba/smb.conf
|
| 21 |
-
|
| 22 |
-
# Copy Gradio app
|
| 23 |
-
COPY ./gradio_app.py /app/gradio_app.py
|
| 24 |
-
|
| 25 |
-
# Expose port 7860 for the Gradio app
|
| 26 |
-
EXPOSE 7860
|
| 27 |
-
|
| 28 |
-
# Start Samba AD and Gradio app
|
| 29 |
-
CMD ["/bin/bash", "-c", "samba-ad-dc -F -S & python3 /app/gradio_app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|