-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #92 from mlibrary/2023-06-05-updates
June 2023 dependency updates.
- Loading branch information
Showing
11 changed files
with
79 additions
and
109 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
ARG RUBY_VERSION=3.2 | ||
FROM ruby:${RUBY_VERSION} | ||
FROM ruby:3.2 AS development | ||
|
||
ARG NPM_VERSION="latest" | ||
ARG UNAME=app | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
|
||
LABEL maintainer="[email protected]" | ||
|
||
RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends \ | ||
apt-transport-https | ||
|
||
|
@@ -18,7 +14,7 @@ RUN apt-get update -yqq && apt-get install -yqq --no-install-recommends \ | |
vim-tiny | ||
|
||
RUN gem install bundler | ||
RUN npm install -g npm@${NPM_VERSION} | ||
RUN npm install -g npm | ||
|
||
|
||
RUN groupadd -g ${GID} -o ${UNAME} | ||
|
@@ -32,3 +28,16 @@ ENV BUNDLE_PATH /gems | |
WORKDIR /app | ||
|
||
CMD ["bundle", "exec", "rackup", "-p", "4567", "--host", "0.0.0.0"] | ||
|
||
|
||
|
||
FROM development AS production | ||
|
||
ENV BUNDLE_WITHOUT development:test | ||
|
||
COPY --chown=${UID}:${GID} . /app | ||
|
||
RUN bundle install | ||
|
||
RUN npm install | ||
RUN npm run build |
This file was deleted.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.