diff --git a/Dockerfile b/Dockerfile index cd92391..9372d8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,11 @@ -FROM python:2.7-alpine +FROM python:3.9-alpine WORKDIR /opt/pyast ADD . /opt/pyast RUN apk update && \ apk add g++ make && \ - apk add nodejs && \ + apk add nodejs npm && \ pip install -r requirements.txt && \ cd /opt/pyast/front && \ npm set progress=false && \ @@ -14,4 +14,4 @@ RUN apk update && \ EXPOSE 4361 -CMD ["gunicorn", "app:app", "-w" "4", "-b", "'0.0.0.0:4361'"] +CMD ["/usr/bin/env", "gunicorn", "app:app", "-w", "1", "-b", "0.0.0.0:4361"] diff --git a/front/public/index.html b/front/public/index.html index f0cb6c7..0f80ff6 100644 --- a/front/public/index.html +++ b/front/public/index.html @@ -14,6 +14,7 @@ Learn how to configure a non-root public URL by running `npm run build`. -->