Skip to content

Commit

Permalink
add motd context (#54)
Browse files Browse the repository at this point in the history
* add motd context

* store motd in infra
  • Loading branch information
kvootla authored Apr 22, 2024
1 parent 6556ebe commit cda5cf8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .docker/production/Dockerfile.gha
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ RUN mkdir $HOME \
# Configure app home directory
WORKDIR $HOME

RUN mkdir /etc/infra

ENV RAILS_ENV=production
ENV NODE_ENV=production

Expand Down Expand Up @@ -109,4 +111,6 @@ COPY --chown=$USERNAME:$USERNAME . $HOME
COPY --chown=$USERNAME:$USERNAME ./.docker/config/credentials.yml.enc $HOME/config
COPY --chown=$USERNAME:$USERNAME ./.docker/config/master.key $HOME/config

USER $USERNAME
RUN echo '[ ! -z "$TERM" -a -r /etc/infra/motd ] && cat /etc/infra/motd' >> /etc/bash.bashrc

USER $USERNAME

0 comments on commit cda5cf8

Please sign in to comment.