deploy
This commit is contained in:
parent
145314a3c8
commit
f37e449ada
1 changed files with 2 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
|||
# como el tarball van a tener que cambiar porque ya vamos a haber hecho
|
||||
# un clone/pull limpio.
|
||||
FROM alpine:3.13.5 AS build
|
||||
MAINTAINER "f <f@sutty.nl>"
|
||||
MAINTAINER "sutty <sutty@sutty.nl>"
|
||||
|
||||
ARG RAILS_MASTER_KEY
|
||||
ARG BRANCH
|
||||
|
@ -20,7 +20,7 @@ RUN test "2.7.3" = `ruby -e 'puts RUBY_VERSION'`
|
|||
|
||||
# https://github.com/rubygems/rubygems/issues/2918
|
||||
# https://gitlab.alpinelinux.org/alpine/aports/issues/10808
|
||||
RUN apk add --no-cache patch
|
||||
RUN apk add --no-cache patch git
|
||||
COPY ./rubygems-platform-musl.patch /tmp/
|
||||
RUN cd /usr/lib/ruby/2.7.0 && patch -Np 0 -i /tmp/rubygems-platform-musl.patch
|
||||
|
||||
|
@ -56,9 +56,6 @@ RUN rm -rf ./vendor
|
|||
RUN mv ../ectomobile/vendor ./vendor
|
||||
RUN mv ../ectomobile/.bundle ./.bundle
|
||||
|
||||
# Instalar secretos
|
||||
COPY --chown=app:root ./config/credentials.yml.enc ./config/
|
||||
|
||||
# Eliminar la necesidad de un runtime JS en producción, porque los
|
||||
# assets ya están pre-compilados.
|
||||
RUN sed -re "/(sassc|uglifier|bootstrap|coffee-rails)/d" -i Gemfile
|
||||
|
@ -107,4 +104,3 @@ RUN install -m 755 /srv/http/entrypoint.sh /usr/local/bin/ectomobile
|
|||
|
||||
# El puerto de puma
|
||||
EXPOSE 3000
|
||||
EXPOSE 9394
|
||||
|
|
Loading…
Reference in a new issue