292a2fc66b
el código se monta como un directorio aparte, esto permite que lo podamos actualizar sin reiniciar el contenedor
15 lines
332 B
Docker
15 lines
332 B
Docker
ARG BASE_IMAGE=sutty/rails
|
|
ARG ALPINE_VERSION=3.13.8
|
|
ARG RUBY_VERSION=2.7
|
|
ARG RUBY_PATCH=5
|
|
FROM ${BASE_IMAGE}:${ALPINE_VERSION}-${RUBY_VERSION}.${RUBY_PATCH}
|
|
ENV RAILS_ENV production
|
|
|
|
RUN apk add --no-cache libxslt libxml2 sqlite-libs
|
|
|
|
RUN gem install --no-document --no-user-install foreman
|
|
|
|
VOLUME "/srv"
|
|
|
|
EXPOSE 3000
|
|
EXPOSE 9394
|