25 lines
751 B
Docker
25 lines
751 B
Docker
FROM ruby:3.2
|
|
|
|
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 g++
|
|
|
|
# Instalação do speedtest-cli
|
|
RUN curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | bash \
|
|
&& apt-get install speedtest
|
|
|
|
ENV RACK_ENV production
|
|
ENV TZ=America/Campo_Grande
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
WORKDIR /code
|
|
COPY . /code
|
|
|
|
RUN bundle install
|
|
|
|
EXPOSE 4567
|