Update Dockerfile
Browse files- Dockerfile +14 -3
Dockerfile
CHANGED
@@ -6,11 +6,22 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|
6 |
RUN apt-get update && apt-get install -y \
|
7 |
curl \
|
8 |
iproute2 \
|
|
|
|
|
|
|
9 |
&& rm -rf /var/lib/apt/lists/*
|
10 |
|
11 |
-
#
|
12 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
|
14 |
EXPOSE 3000
|
15 |
|
16 |
-
|
|
|
|
6 |
RUN apt-get update && apt-get install -y \
|
7 |
curl \
|
8 |
iproute2 \
|
9 |
+
ca-certificates \
|
10 |
+
gnupg \
|
11 |
+
lsb-release \
|
12 |
&& rm -rf /var/lib/apt/lists/*
|
13 |
|
14 |
+
# Install Docker
|
15 |
+
RUN mkdir -p /etc/apt/keyrings && \
|
16 |
+
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
|
17 |
+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu jammy stable" > /etc/apt/sources.list.d/docker.list && \
|
18 |
+
apt-get update && \
|
19 |
+
apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
|
20 |
+
|
21 |
+
# Install Dokploy (without trying to initialize Swarm during build)
|
22 |
+
RUN curl -sSL https://dokploy.com/install.sh | sh -s -- --skip-swarm
|
23 |
|
24 |
EXPOSE 3000
|
25 |
|
26 |
+
# Command to run when the container starts
|
27 |
+
CMD ["bash"]
|