1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 02:38:07 +02:00

Update Dockerfile

Signed-off-by: techopsmasters <163403479+techopsmasters@users.noreply.github.com>
This commit is contained in:
techopsmasters 2024-05-13 19:42:56 +05:30 committed by GitHub
parent 1b130cacbb
commit 390eb3dfef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,16 +20,12 @@ CMD [ "cargo", "run", "--offline" ]
FROM base AS dev-envs
EXPOSE 8000
RUN <<EOF
apt-get update
apt-get install -y --no-install-recommends git
EOF
RUN apt update && \
apt install -y --no-install-recommends git
RUN <<EOF
useradd -s /bin/bash -m vscode
groupadd docker
RUN useradd -s /bin/bash -m vscode && \
groupadd docker && \
usermod -aG docker vscode
EOF
# install Docker tools (cli, buildx, compose)
COPY --from=gloursdocker/docker / /
CMD [ "cargo", "run", "--offline" ]