moved commands to single RUN

pull/414/head
abu 5 months ago
parent e6b1d2755f
commit 2d4f90af61
  1. 14
      fastapi/Dockerfile

@ -12,15 +12,11 @@ COPY ./app ./app
FROM builder as dev-envs
RUN <<EOF
apt-get update
apt-get install -y --no-install-recommends git
EOF
RUN apt-get update && \
apt-get install -y --no-install-recommends git && \
useradd -s /bin/bash -m vscode && \
groupadd docker && \
usermod -aG docker vscode
RUN <<EOF
useradd -s /bin/bash -m vscode
groupadd docker
usermod -aG docker vscode
EOF
# install Docker tools (cli, buildx, compose)
COPY --from=gloursdocker/docker / /

Loading…
Cancel
Save