-
-
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
33 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
.ruby-lsp | ||
.vscode | ||
**/.DS_Store | ||
docker-compose.yml | ||
compose.yml | ||
coverage | ||
Dockerfile | ||
Guardfile | ||
|
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 /senec-charger | ||
|
@@ -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 /senec-charger | ||
|
||
COPY --from=Builder /usr/local/bundle/ /usr/local/bundle/ | ||
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/ | ||
COPY . /senec-charger/ | ||
|
||
ENTRYPOINT bundle exec app/main.rb | ||
ENTRYPOINT ["bundle", "exec", "app/main.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
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