Skip to content

Commit

Permalink
Docker: Fix build warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ledermann committed Jul 27, 2024
1 parent 6e2d404 commit 55c6fb1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.3.4-alpine AS Builder
FROM ruby:3.3.4-alpine AS builder
RUN apk add --no-cache build-base

WORKDIR /mqtt-collector
Expand All @@ -15,21 +15,21 @@ LABEL maintainer="georg@ledermann.dev"
RUN apk add --no-cache tzdata

# Decrease memory usage
ENV MALLOC_ARENA_MAX 2
ENV MALLOC_ARENA_MAX=2

# Move build arguments to environment variables
ARG BUILDTIME
ENV BUILDTIME ${BUILDTIME}
ENV BUILDTIME=${BUILDTIME}

ARG VERSION
ENV VERSION ${VERSION}
ENV VERSION=${VERSION}

ARG REVISION
ENV REVISION ${REVISION}
ENV REVISION=${REVISION}

WORKDIR /mqtt-collector

COPY --from=Builder /usr/local/bundle/ /usr/local/bundle/
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/
COPY . /mqtt-collector/

ENTRYPOINT bundle exec app.rb
ENTRYPOINT ["bundle", "exec", "app.rb"]

0 comments on commit 55c6fb1

Please sign in to comment.