Commit ba8324f0 authored by Feri's avatar Feri
Browse files

Move prod docker

parent 07d71da9
Pipeline #3145 failed with stage
in 6 minutes and 8 seconds
FROM python:3.7-alpine
ENV CONFIG_FILE=/usr/src/app/config.yaml
ENV DJANGO_SETTINGS_MODULE=vikoverflow.settings.base
WORKDIR /usr/src/app
COPY Pipfile Pipfile.lock ./
RUN apk add --no-cache --virtual .deps build-base jpeg-dev zlib-dev graphviz-dev musl-dev gcc postgresql-dev && \
pip install pipenv gunicorn && \
pipenv install --system --deploy --ignore-pipfile && \
apk del --no-cache .deps && \
apk add --no-cache libpq libjpeg zlib
COPY example_config.yaml ./config.yaml
COPY ./src ./src
WORKDIR /usr/src/app/src
# Run check
RUN python check
ENTRYPOINT ["gunicorn", "--bind", "", "vikoverflow.wsgi:application"]
\ No newline at end of file
Supports Markdown
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