Skip to content

Commit

Permalink
Make certificate configurable (#454, backport)
Browse files Browse the repository at this point in the history
Backport of #421

- Dockerfile: Replaced deprecated MAINTAINER with labels, use COPY
  instead of ADD
  • Loading branch information
marcelmay committed Apr 3, 2022
1 parent 79ba1c0 commit 8b78fe2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions greenmail-docker/standalone/Dockerfile
@@ -1,5 +1,7 @@
FROM openjdk:8u322-jre-slim-buster
MAINTAINER https://github.com/greenmail-mail-test/greenmail (marcel.may.de@gmail.com)

LABEL org.opencontainers.image.url https://github.com/greenmail-mail-test/greenmail/blob/master/greenmail-docker/standalone
LABEL org.opencontainers.image.source https://github.com/greenmail-mail-test/greenmail/blob/master/greenmail-docker/standalone/Dockerfile

#######################
# Expose ports:
Expand Down Expand Up @@ -27,9 +29,9 @@ ENV GREENMAIL_OPTS -Dgreenmail.setup.test.all \
# Run as user greenmail
RUN groupadd -r greenmail && useradd --no-log-init -r -g greenmail greenmail
# Note: If using Dockerfile without Maven, you must manually copy the JAR
ADD target/greenmail-standalone.jar /home/greenmail/greenmail-standalone.jar
ADD target/greenmail.p12 /home/greenmail/greenmail.p12
ADD run_greenmail.sh /home/greenmail/run_greenmail.sh
COPY target/greenmail-standalone.jar /home/greenmail/greenmail-standalone.jar
COPY target/greenmail.p12 /home/greenmail/greenmail.p12
COPY run_greenmail.sh /home/greenmail/run_greenmail.sh
RUN chown greenmail:greenmail /home/greenmail/greenmail-standalone.jar /home/greenmail/run_greenmail.sh /home/greenmail/greenmail.p12 && \
chmod +x /home/greenmail/run_greenmail.sh
USER greenmail
Expand Down

0 comments on commit 8b78fe2

Please sign in to comment.