generated from oci/template
Add docker to env
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 42s
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 42s
This commit is contained in:
parent
c513954671
commit
a697d1821d
1 changed files with 15 additions and 1 deletions
16
Dockerfile
16
Dockerfile
|
@ -9,6 +9,20 @@ ENV DOCKER_USER=code
|
|||
# Define persistent volumes for /home and /workspace
|
||||
VOLUME ["/home", "/workspace"]
|
||||
|
||||
# Add Docker command support to image
|
||||
RUN apt-get update && apt-get install ca-certificates curl \
|
||||
&& install -m 0755 -d /etc/apt/keyrings \
|
||||
&& curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc \
|
||||
&& chmod a+r /etc/apt/keyrings/docker.asc
|
||||
RUN echo \
|
||||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \
|
||||
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
|
||||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null \
|
||||
&& sudo apt-get update
|
||||
|
||||
RUN apt-get install -y --no-install-recommends \
|
||||
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
|
||||
|
||||
# Install development tools with optimization for minimal package installs
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends \
|
||||
|
@ -37,4 +51,4 @@ RUN apt-get update && \
|
|||
RUN curl -o /usr/bin/entrypoint.sh https://raw.githubusercontent.com/coder/code-server/main/ci/release-image/entrypoint.sh && \
|
||||
chmod +x /usr/bin/entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/usr/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "/workspace"]
|
||||
ENTRYPOINT ["/usr/bin/entrypoint.sh", "--bind-addr", "0.0.0.0:8080", "/workspace"]
|
||||
|
|
Loading…
Reference in a new issue