aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorAlexis Metaireau <alexis@notmyidea.org>2018-07-16 22:58:48 +0200
committerGitHub <noreply@github.com>2018-07-16 22:58:48 +0200
commit1d0880f3cb39463483a4241197d8eb0d817dffc6 (patch)
treeffb843f74d1d1337a6e66d92b5deb21c0dd9c77e /Dockerfile
parentc3f8ddd274a40b164b5fceeab44c1c26cf053b04 (diff)
parentf9cc4e56230ce04f58d457bfc8f468d56e53cb36 (diff)
downloadihatemoney-mirror-1d0880f3cb39463483a4241197d8eb0d817dffc6.zip
ihatemoney-mirror-1d0880f3cb39463483a4241197d8eb0d817dffc6.tar.gz
ihatemoney-mirror-1d0880f3cb39463483a4241197d8eb0d817dffc6.tar.bz2
Merge branch 'master' into almet/fix-supervisord-template
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 4 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index ba2752a..fbc0f4a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -4,12 +4,11 @@ RUN mkdir /ihatemoney &&\
mkdir -p /etc/ihatemoney &&\
pip install --no-cache-dir gunicorn pymysql
-WORKDIR /ihatemoney
-COPY . .
+COPY . /ihatemoney
ARG INSTALL_FROM_PYPI="False"
RUN if [ "$INSTALL_FROM_PYPI" = True ]; then\
pip install --no-cache-dir ihatemoney ; else\
- pip install --no-cache-dir -e . ; \
+ pip install --no-cache-dir -e /ihatemoney ; \
fi
ENV DEBUG="False" \
@@ -26,9 +25,8 @@ ENV DEBUG="False" \
ACTIVATE_DEMO_PROJECT="True" \
ADMIN_PASSWORD="" \
ALLOW_PUBLIC_PROJECT_CREATION="True" \
- ACTIVATE_ADMIN_DASHBOARD="False" \
- GUNICORN_NUM_WORKERS="3"
+ ACTIVATE_ADMIN_DASHBOARD="False"
VOLUME /database
EXPOSE 8000
-CMD ["/ihatemoney/conf/confandrun.sh"]
+ENTRYPOINT ["/ihatemoney/conf/confandrun.sh"]