explorer icon indicating copy to clipboard operation
explorer copied to clipboard

request dockerFile ?

Open amirulmus opened this issue 3 years ago • 1 comments

anyone can build in docker?

amirulmus avatar Jul 11 '21 19:07 amirulmus

  1. Dockerfile

` FROM ruby:2.6.3-alpine

RUN apk add --update --no-cache
binutils-gold
build-base
curl
file
g++
gcc
git
less
libstdc++
libffi-dev
libc-dev
linux-headers
libxml2-dev
libxslt-dev
libgcrypt-dev
make
netcat-openbsd
nodejs
openssl
pkgconfig
postgresql-dev
python
tzdata
yarn

RUN gem install bundler -v 2.0.2

WORKDIR /app

COPY Gemfile /app/Gemfile COPY Gemfile.lock /app/Gemfile.lock

RUN bundle config build.nokogiri --use-system-libraries

RUN bundle check || bundle install

COPY package.json yarn.lock ./

RUN yarn install --check-files

COPY . ./

RUN bundle exec rake webpacker:compile

EXPOSE 3000

CMD ["./entrypoints/entrypoint.sh"] `

2 ./entrypoints/entrypoint.sh

` #!/bin/sh

set -e

if [ -f tmp/pids/server.pid ]; then rm tmp/pids/server.pid fi

bundle exec rails s -b 0.0.0.0 `

nhnam6 avatar Mar 21 '22 13:03 nhnam6