Switch invoke to dev image
This commit is contained in:
parent
012523ce6c
commit
0cf635d1ec
|
|
@ -2,6 +2,7 @@
|
||||||
ARG base_commit
|
ARG base_commit
|
||||||
FROM registry.gitlab.com/turniere/turniere-backend/production/commits:$base_commit
|
FROM registry.gitlab.com/turniere/turniere-backend/production/commits:$base_commit
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
RUN apt-get update -qq && apt-get install -y python3 python3-pip && apt-get clean && python3 -m pip install --no-cache-dir invoke
|
||||||
RUN bundle config set with 'development' && bundle install
|
RUN bundle config set with 'development' && bundle install
|
||||||
ENV RAILS_ENV development
|
ENV RAILS_ENV development
|
||||||
CMD bundle exec rails db:migrate && bundle exec rails s -p 3000 -b 0.0.0.0
|
CMD bundle exec rails db:migrate && bundle exec rails s -p 3000 -b 0.0.0.0
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
ARG base_commit
|
ARG base_commit
|
||||||
FROM ruby:3.1.2-slim
|
FROM ruby:3.1.2-slim
|
||||||
# RUN apk add --no-cache build-base tzdata sqlite sqlite-dev postgresql-dev git && gem install tzinfo-data
|
# RUN apk add --no-cache build-base tzdata sqlite sqlite-dev postgresql-dev git && gem install tzinfo-data
|
||||||
RUN apt-get update -qq && apt-get install -y openssl git build-essential libpq-dev nodejs python3 python3-pip && apt-get clean && gem install tzinfo-data && python3 -m pip install --no-cache-dir invoke
|
RUN apt-get update -qq && apt-get install -y openssl git build-essential libpq-dev nodejs && apt-get clean && gem install tzinfo-data
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY Gemfile* /app/
|
COPY Gemfile* /app/
|
||||||
RUN gem install bundler:2.3.13 && bundle config set deployment 'true' && bundle install
|
RUN gem install bundler:2.3.13 && bundle config set deployment 'true' && bundle install
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue