diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..375f97f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM python:alpine + +ADD requirements.txt /app/requirements.txt +RUN apk update \ + && apk add --virtual build-deps gcc python3-dev musl-dev \ + && apk add --no-cache mariadb-dev \ + && pip install --no-cache-dir -r /app/requirements.txt \ + && apk add --no-cache mariadb-connector-c \ + && apk del .build-deps +ADD . /app +WORKDIR /app + +EXPOSE 8000 + +ENV DJANGO_SETTINGS_MODULE=altessimo.production + +CMD ["gunicorn", "--bind", ":8000", "altessimo.wsgi"] diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..4356d20 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +Django>=3.0,<4.0 +mysqlclient +gunicorn