Commit 6a217116 authored by Evili del Rio's avatar Evili del Rio

Arrange Dockerfile

parents 32f9df2e fa6f2cd7
.git
*~
.env
*.sqlite3
*.pyc
include:
- template: Auto-DevOps.gitlab-ci.yml
build:
script:
- set -x
- |
if [[ -z "$CI_COMMIT_TAG" ]]; then
export CI_APPLICATION_REPOSITORY=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG}
export CI_APPLICATION_TAG=${CI_APPLICATION_TAG:-$CI_COMMIT_SHA}
else
export CI_APPLICATION_REPOSITORY=${CI_APPLICATION_REPOSITORY:-$CI_REGISTRY_IMAGE}
export CI_APPLICATION_TAG=${CI_APPLICATION_TAG:-$CI_COMMIT_TAG}
fi
- netstat -r -n
- cat /etc/resolv.conf
- nslookup www.google.com
- wget -O /tmp/index.html https://www.google.cat
- sh -x /build/build.sh
......@@ -2,7 +2,6 @@ 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
......@@ -20,7 +19,6 @@ RUN apk update && \
apk del ${dev_packages} && \
rm -fr /root/.cache
ENV DJANGO_STATIC_ROOT=/static
ENV DJANGO_MEDIA_ROOT=/media
......
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