forked from SolucaoOnlineDeLicitacao/sol-api
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (21 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
23 lines (21 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ruby:2.7.7
WORKDIR /app
COPY Gemfile /app/Gemfile
RUN bundle install
COPY bin/setup /app/bin/setup
COPY entrypoint.sh /app/entrypoint.sh
COPY . /app/
RUN curl -fsSL https://packages.redis.io/gpg | gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
RUN echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] https://packages.redis.io/deb bullseye main" | tee /etc/apt/sources.list.d/redis.list
RUN apt-get update -y
RUN apt-get install redis -y
RUN bundle install --verbose
RUN apt-get install mariadb-server -y
RUN service mariadb start
ENTRYPOINT '/app/entrypoint.sh'
# RUN bin/setup
# COPY Gemfile.lock /app/Gemfile.lock
# RUN rails setup:load
# RUN rake oauth:applications:load
# RUN bundle exec foreman start
# RUN bash