explorer
explorer copied to clipboard
request dockerFile ?
anyone can build in docker?
- 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 `