-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
54 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 /shelly-collector | ||
|
@@ -15,21 +15,21 @@ LABEL maintainer="[email protected]" | |
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 /shelly-collector | ||
|
||
COPY --from=Builder /usr/local/bundle/ /usr/local/bundle/ | ||
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/ | ||
COPY . /shelly-collector/ | ||
|
||
ENTRYPOINT bundle exec app.rb | ||
ENTRYPOINT ["bundle", "exec", "app.rb"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.