-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 803 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 803 Bytes
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
FROM ruby:3.1-buster
# docker-ce-cli apt dependencies
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
RUN curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
RUN add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
RUN apt-get update
RUN apt-get -y install docker-ce docker-ce-cli containerd.io
WORKDIR /app
RUN gem install bundler
COPY . .
RUN bundle install
# Is not needed as long as the equivalent HOST DIR
# has been initiated with the correct FACLs.
# RUN mkdir /home/overseer/work-dir
# && chown -R 1001:999 /home/overseer/work-dir \
# && chmod -R 777 /home/overseer/work-dir
CMD bundle exec ruby ./app.rb