Update Dockerfile

Signed-off-by: techopsmasters <163403479+techopsmasters@users.noreply.github.com>
pull/486/head
techopsmasters 2 months ago committed by GitHub
parent 8f15b8dc2d
commit 2cb2241306
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 15
      traefik-golang/backend/Dockerfile

@ -8,16 +8,13 @@ RUN CGO_ENABLED=0 go build -o backend main.go
FROM build as dev-envs
RUN <<EOF
apt-get update
apt-get install -y --no-install-recommends git
EOF
RUN <<EOF
useradd -s /bin/bash -m vscode
groupadd docker
RUN apt update && \
apt install -y --no-install-recommends git
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 ["go", "run", "main.go"]

Loading…
Cancel
Save