From 3036a6a717649c1a49461e4d1535038227118ed5 Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Sun, 18 Jun 2023 22:12:43 -0400 Subject: [PATCH] Cleaning up copy command --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 64941d6..337e1e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,16 +21,14 @@ FROM alpine:latest AS build-release-stage WORKDIR / ARG VERSION=version -COPY --from=build-stage /app/dist/*-alpine/obp /bin/obp +COPY --from=build-stage /app/dist/*-alpine/obp /bin/ RUN chmod +x /bin/obp ARG USER=default ENV HOME /home/$USER -# install sudo as root RUN apk add --update sudo -# add new user RUN adduser -D $USER \ && echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/$USER \ && chmod 0440 /etc/sudoers.d/$USER