diff --git a/Dockerfile b/Dockerfile index cb85713..6c36382 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,12 @@ RUN rm -rf /var/cache/apk/* WORKDIR /app COPY app.py /app/app.py +COPY entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +ENV LISTEN_ADDRESS=0.0.0.0 +ENV LISTEN_PORT=8080 EXPOSE 8080 -CMD ["gunicorn", "--bind", "0.0.0.0:8080", "app:app"] +ENTRYPOINT [ "/entrypoint.sh" ]