Skip to content

Commit

Permalink
style: 💄 fix for sonarcube
Browse files Browse the repository at this point in the history
  • Loading branch information
kibitan committed Dec 30, 2024
1 parent 7ae5e96 commit b91e47c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
ARG RUBY_VERSION=3.4

FROM ruby:${RUBY_VERSION}-alpine AS builder
RUN apk add --no-cache build-base git
RUN addgroup -S app && adduser -S -G app app
RUN apk add --no-cache build-base git && addgroup -S app && adduser -S -G app app
USER app
WORKDIR /app
COPY --chown=app . ./
Expand All @@ -15,8 +14,7 @@ USER app

FROM ruby:${RUBY_VERSION}-alpine
# TODO: remove dependecy of `git` from masking.gemspec:L19
RUN apk add --no-cache git
RUN addgroup -S app && adduser -S -G app app
RUN apk add --no-cache git && addgroup -S app && adduser -S -G app app
ENV PATH $PATH:/app/exe
WORKDIR /app
RUN chown app /app
Expand Down

0 comments on commit b91e47c

Please sign in to comment.