Commit e59df7a5 authored by Evili del Rio's avatar Evili del Rio

No custom dockerfile

parent 6a217116
.git
*~
.env
*.sqlite3
*.pyc
FROM python:3.7-alpine
ARG dev_packages="gcc g++ libc-dev libxml2-dev libxslt-dev postgresql-dev openldap-dev"
RUN mkdir -pv /app
WORKDIR /app
RUN pip install --upgrade pip
COPY requirements.txt .
RUN apk update && \
apk add bash \
${dev_packages} && \
pip install gunicorn \
psycopg2-binary psycopg2 mysql-connector \
django-heroku whitenoise[brotli] && \
pip install -r requirements.txt && \
apk del ${dev_packages} && \
rm -fr /root/.cache
ENV DJANGO_STATIC_ROOT=/static
ENV DJANGO_MEDIA_ROOT=/media
VOLUME ["/app", "/static", "/media"]
EXPOSE 5000/tcp
ENTRYPOINT ["/app/entrypoint.sh"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment