-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
33 lines (25 loc) · 914 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
FROM ruby:2.6
RUN gem install bundler -v 2.4.22
RUN apt-get update -qq
# Add https support to apt to download yarn & newer node
RUN apt-get install -y apt-transport-https
# Add yarn repo and install along with other rails deps
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-get update -qq
RUN apt-get install mariadb-client build-essential libpq-dev yarn nodejs chromium-driver libatk-bridge2.0-0 libgtk-3.0 -y
WORKDIR /ursus
# Install Ruby Gems
ENV BUNDLE_PATH /usr/local/bundle
COPY Gemfile ./Gemfile
COPY Gemfile.lock ./Gemfile.lock
RUN bundle install
# Install node packages
COPY ./package.json ./package.json
COPY ./yarn.lock ./yarn.lock
COPY ./config/uv ./config/uv
RUN yarn install --frozen-lockfile
# Add ursus
COPY / /ursus
CMD ["sh", "./start-ursus.sh"]
EXPOSE 3000