remove old Dockerfile
This commit is contained in:
parent
8e960419b4
commit
16139755e5
42
Dockerfile
42
Dockerfile
@ -1,42 +0,0 @@
|
||||
ARG RUBY_VERSION="3.4.3"
|
||||
FROM ruby:${RUBY_VERSION} AS base
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN <<EOT
|
||||
apt-get update
|
||||
gem update --system --no-document
|
||||
gem install -N bundler
|
||||
EOT
|
||||
|
||||
|
||||
FROM base AS build
|
||||
|
||||
RUN <<EOT
|
||||
apt-get install --yes gcc make
|
||||
EOT
|
||||
|
||||
COPY Gemfile* .
|
||||
|
||||
RUN <<EOT
|
||||
bundle config set --local without development
|
||||
bundle install
|
||||
EOT
|
||||
|
||||
|
||||
FROM base
|
||||
|
||||
ENV PORT=4567
|
||||
|
||||
# RUN useradd ruby --home /app --shell /bin/sh
|
||||
RUN useradd --home /app --create-home app
|
||||
|
||||
USER app:app
|
||||
|
||||
COPY --from=build /usr/local/bundle /usr/local/bundle
|
||||
COPY --from=build --chown=app:app /app /app
|
||||
|
||||
COPY --chown=app:app . .
|
||||
|
||||
EXPOSE 4567
|
||||
CMD [ "puma", "--bind", "0.0.0.0", "--port", "$PORT" ]
|
Loading…
x
Reference in New Issue
Block a user