Cleaning up copy command
continuous-integration/drone/tag Build is passing Details

main v0.1.5
Nick Dumas 2 years ago
parent 84aa6ce9ca
commit 3036a6a717

@ -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

Loading…
Cancel
Save