Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Amphibian
Commits
0171b497
Commit
0171b497
authored
Mar 01, 2021
by
Matija Obreza
Browse files
Docker: changed from /bin/sh to /bin/bash for env variables support
- Fixes #3
parent
3a964da0
Changes
1
Hide whitespace changes
Inline
Side-by-side
amphibian-server/docker/Dockerfile
View file @
0171b497
...
...
@@ -2,6 +2,15 @@ FROM jetty:9.4.35-jre11
LABEL
maintainer "Matija Obreza <matija.obreza@croptrust.org>"
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|'
/docker-entrypoint.sh
# workaround for https://github.com/appropriate/docker-jetty/issues/108
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 \
WORKDIR
${JETTY_BASE}
# Update jetty configuration
COPY
webapps ${JETTY_BASE}/webapps
# Override properties
COPY
amphibian.properties ${JETTY_BASE}/resources/amphibian.properties
# Add war file to the setup
COPY
${WARFILE} ${JETTY_BASE}/webapps/amphibian.war
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment