Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KSZK
DevTeam
vikoverflow
vikoverflow-backend
Commits
ba8324f0
Commit
ba8324f0
authored
Apr 06, 2020
by
Feri
Browse files
Move prod docker
parent
07d71da9
Pipeline
#3145
failed with stage
in 6 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile.prod
0 → 100644
View file @
ba8324f0
FROM python:3.7-alpine
ENV PIP_NO_CACHE_DIR=false
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 manage.py check
EXPOSE 8000
ENTRYPOINT ["gunicorn", "--bind", "0.0.0.0:8000", "vikoverflow.wsgi:application"]
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment