Skip to content

Commit

Permalink
Fix quay.io build
Browse files Browse the repository at this point in the history
  • Loading branch information
mtnstar committed Jun 21, 2023
1 parent 171904a commit ecd3f3e
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM ruby:3.2
ENV RACK_ENV=production
ENV RAILS_ENV=production
ENV NODE_OPTIONS='--max-old-space-size=2048'
ENV JOBS=1

SHELL ["/bin/bash", "-c"]

USER root

ARG BUNDLE_WITHOUT='development:test'
ARG BUNDLER_VERSION=2.3.13
ARG BUNDLER_VERSION=2.4.10

# install nodejs
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
Expand Down Expand Up @@ -37,16 +39,13 @@ RUN bundle config set --local deployment 'true' \
RUN rm -rf vendor/cache/ .git

# build frontend
RUN yarn global add ember-cli@4.2.0
RUN yarn global add ember-cli@3.24.0
RUN /app-src/bin/prepare-frontend.sh
RUN rm -rf /app-src/frontend

RUN apt-get remove -y --purge rsync yarn nodejs
RUN apt-get autoremove -y

RUN bundle config set --local deployment 'true' \
&& bundle config set --local without ${BUNDLE_WITHOUT} \
&& bundle

RUN adduser --disabled-password --uid 1001 --gid 0 --gecos "" app

USER 1001
Expand Down

0 comments on commit ecd3f3e

Please sign in to comment.