2023-04-08 00:35:36 +02:00
|
|
|
FROM ruby:3.2.2
|
2023-04-08 00:01:31 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y curl
|
|
|
|
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
|
2020-01-16 11:25:39 +01:00
|
|
|
|
2023-04-08 00:01:31 +02:00
|
|
|
RUN apt-get update && apt-get install -y ruby ruby-dev ruby-bundler \
|
|
|
|
build-essential zlib1g-dev libsqlite3-dev libxml2-dev libxslt1-dev pkg-config nodejs
|
|
|
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
2020-01-16 11:25:39 +01:00
|
|
|
|
2023-04-08 00:01:31 +02:00
|
|
|
RUN gem install bundler
|
2016-01-23 20:33:02 +01:00
|
|
|
|
2020-01-16 12:56:35 +01:00
|
|
|
ENV DOCKERIZE_VERSION v0.6.1
|
|
|
|
RUN curl -sSLO https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
|
|
&& tar -C /usr/local/bin -xzvf dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz \
|
|
|
|
&& rm dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz
|
|
|
|
|
2016-01-23 20:33:02 +01:00
|
|
|
RUN mkdir -p /app
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
2016-03-08 08:58:31 +01:00
|
|
|
|
2016-01-23 20:33:02 +01:00
|
|
|
COPY Gemfile Gemfile
|
2023-04-08 00:01:31 +02:00
|
|
|
COPY Gemfile.lock Gemfile.lock
|
2016-05-04 20:56:02 +02:00
|
|
|
RUN bundle config build.nokogiri --use-system-libraries
|
2023-03-29 21:02:52 +02:00
|
|
|
RUN bundle update
|
2016-01-23 20:33:02 +01:00
|
|
|
RUN bundle install
|
|
|
|
|
|
|
|
ADD . /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
2023-04-08 00:01:31 +02:00
|
|
|
RUN npm install -g yarn sass
|
2023-04-02 13:28:57 +02:00
|
|
|
|
2019-04-14 23:51:40 +02:00
|
|
|
COPY ./docker-entrypoint.sh /
|
|
|
|
RUN chmod +x docker-entrypoint.sh
|
|
|
|
|
2016-01-23 20:33:02 +01:00
|
|
|
EXPOSE 3000
|
2019-04-14 23:51:40 +02:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
2016-01-23 20:33:02 +01:00
|
|
|
CMD ["rails", "server", "-b", "0.0.0.0"]
|