Rename entrypoint script

This commit is contained in:
Tatsuyuki Ishi
2017-07-27 19:57:31 +09:00
parent a757df8f55
commit 5b20021b91
4 changed files with 7 additions and 9 deletions

View File

@@ -3,7 +3,7 @@ FROM python:3.6-alpine
MAINTAINER Abhilash Raj
#Add startup script to container
ADD assets/run.sh /opt/run.sh
COPY docker-entrypoint.sh /usr/local/bin/
#Install all required packages, add user for executing mailman and set execution rights for startup script
RUN apk update \
@@ -12,8 +12,7 @@ RUN apk update \
&& pip install psycopg2 mailman==3.1.0 mailman-hyperkitty==1.1.0 \
&& pip install pymysql \
&& apk del build-deps \
&& adduser -S mailman \
&& chmod a+x /opt/run.sh
&& adduser -S mailman
# Change the working directory.
WORKDIR /opt/mailman
@@ -23,5 +22,5 @@ EXPOSE 8001 8024
ENV MAILMAN_CONFIG_FILE /etc/mailman.cfg
ENTRYPOINT ["/opt/run.sh"]
CMD ["/usr/local/bin/master"]
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["master"]