2021-10-07 20:34:07 -04:00
|
|
|
FROM ruby:2.7.2
|
2021-10-04 22:34:09 -04:00
|
|
|
|
2021-10-07 20:34:55 -04:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
curl \
|
|
|
|
build-essential \
|
|
|
|
curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
|
|
|
|
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
|
|
|
|
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
|
|
|
|
apt-get update && apt-get install -y nodejs yarn sqlite3 cron
|
|
|
|
|
2021-10-07 20:39:35 -04:00
|
|
|
ENV RACK_ENV production
|
2021-10-07 22:55:34 -04:00
|
|
|
ENV TZ=America/Campo_Grande
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
2021-10-05 10:22:47 -04:00
|
|
|
|
2021-10-04 22:34:09 -04:00
|
|
|
WORKDIR /code
|
|
|
|
COPY . /code
|
2021-10-05 10:22:47 -04:00
|
|
|
|
2021-10-04 22:34:09 -04:00
|
|
|
RUN bundle install
|
|
|
|
|
2021-10-07 21:39:47 -04:00
|
|
|
EXPOSE 4567
|