Skip to content

Commit

Permalink
Merge pull request #74 from OneBusAway/mw-zip
Browse files Browse the repository at this point in the history
New tools and slim down Docker image
  • Loading branch information
aaronbrethorst authored Apr 10, 2024
2 parents d90ebf4 + 0893c29 commit 8829e91
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion oba/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ ARG UID=1000
ARG GROUP=oba_group
ARG USER=oba_user

RUN apt-get update && apt-get install -y \
jq \
magic-wormhole \
supervisor \
unzip \
xmlstarlet \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN groupadd -g $GID $GROUP && \
useradd -d /home/$USER -u $UID -m -s /bin/bash -g $GROUP $USER && \
chown -R $USER:$GROUP $CATALINA_HOME && \
Expand Down Expand Up @@ -55,7 +64,8 @@ COPY ./config/onebusaway-enterprise-acta-webapp-data-sources.xml ./WEB-INF/class
RUN cp $CATALINA_HOME/lib/mysql-connector-j-8.3.0.jar ./WEB-INF/lib
RUN mv /oba/webapps/onebusaway-enterprise-acta-webapp $CATALINA_HOME/webapps

RUN apt-get update && apt-get install -y xmlstarlet jq supervisor&& apt-get clean
RUN rm -rf /oba/libs

COPY bootstrap.sh /oba/bootstrap.sh
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
RUN chmod +x /oba/bootstrap.sh
Expand Down

0 comments on commit 8829e91

Please sign in to comment.