diff --git a/Dockerfile b/Dockerfile index 0b775793..da2dd0db 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,9 @@ RUN python -m venv /opt/venv # Make sure we use the virtualenv: ENV PATH="/opt/venv/bin:$PATH" -RUN apk add --no-cache --virtual .build-deps ca-certificates gcc linux-headers musl-dev jpeg-dev zlib-dev libffi-dev \ -&& pip install --upgrade pip +RUN apk add --no-cache --virtual .build-deps ca-certificates gcc linux-headers \ + musl-dev jpeg-dev zlib-dev libffi-dev \ + && pip install --upgrade pip COPY ./fet2020/requirements.txt /app/requirements.txt @@ -19,7 +20,7 @@ COPY --from=builder /opt/venv /opt/venv # Make sure we use the virtualenv: ENV PATH="/opt/venv/bin:$PATH" -COPY ./fet2020 /app +#COPY ./fet2020 /app RUN python manage.py makemigrations && python manage.py makemigrations posts members diff --git a/run_container b/run_container index d6846bc8..9f8dd29e 100755 --- a/run_container +++ b/run_container @@ -1,4 +1,5 @@ docker stop bb2 docker container rm bb2 docker build -t test1 . -docker run --name bb2 -d -p 8080:80 test1 +docker network create fet-net +docker run --name fetdjango --network fet-net -d -p 8080:80 test1