Files
caprover/dockerfiles/ruby-rack
2020-07-04 10:16:09 -04:00

18 lines
416 B
Plaintext

# FROM ruby:2.7.1-alpine
# Uncomment the line above if you want to use a Dockerfile instead of templateId
RUN apk update && apk upgrade && \
apk add --no-cache make g++ git postgresql-dev
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY ./Gemfile /usr/src/app/
RUN bundle install
COPY ./ /usr/src/app
ENV RACK_ENV production
EXPOSE 80
CMD ["rackup", "config.ru", "--host", "0.0.0.0", "--port", "80"]