Commit 0171b497 authored by Matija Obreza's avatar Matija Obreza
Browse files

Docker: changed from /bin/sh to /bin/bash for env variables support

- Fixes #3
parent 3a964da0
......@@ -2,6 +2,15 @@ FROM jetty:9.4.35-jre11
LABEL maintainer "Matija Obreza <>"
USER root
# sh removes env vars it doesn't support (ones with periods)
RUN set -ex; \
sed -ri 's|^#!/bin/sh$|#!/usr/bin/env bash|' /
# workaround for
RUN rm -rf /usr/local/jetty/lib/mail
ENV USER=jetty \
APP_DATA=/data \
JETTY_BASE=/var/lib/jetty/ \
......@@ -9,8 +18,11 @@ ENV USER=jetty \
# Update jetty configuration
COPY webapps ${JETTY_BASE}/webapps
# Override properties
COPY ${JETTY_BASE}/resources/
# Add war file to the setup
COPY ${WARFILE} ${JETTY_BASE}/webapps/amphibian.war
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment