add docker

This commit is contained in:
sam
2022-05-14 17:20:04 +04:30
parent 23bb0bca0d
commit b9bde40edc
4 changed files with 54 additions and 2 deletions

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM ruby:2.7.1
LABEL maintainer="Radin <radin@instedd.org>"
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
apt-get update -qq && \
apt-get install -y vim nodejs sqlite3 libsqlite3-dev yarn && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir /app
WORKDIR /app
COPY Gemfile* package.json yarn.lock /app/
RUN gem install bundler -v 2.1.4 && \
bundle install --jobs 20
COPY . /app