-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (30 loc) · 967 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ruby:3.0.2
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt update
RUN apt install yarn -y
RUN apt install nano -y
RUN apt install nodejs -y
RUN apt install build-essential libpq-dev -y
RUN apt install postgresql-client -y
RUN apt install redis -y
RUN gem install rails
RUN gem install bundler
RUN gem install pg
RUN gem install sidekiq
RUN gem install sidekiq-cron
RUN gem install shrine
RUN gem install shrine-url
RUN gem install blueprinter
RUN gem install oj
RUN gem install redis
RUN gem install firebase
RUN mkdir /app
WORKDIR /app
COPY app-entrypoint.sh /usr/src/app/app-entrypoint.sh
RUN chmod +x /usr/src/app/app-entrypoint.sh
ENV RAILS_ENV development
ENV RACK_ENV development
ENV AWS_S3 https://rafaelsblog.s3.amazonaws.com
EXPOSE 3000
ENTRYPOINT [ "/usr/src/app/app-entrypoint.sh" ]