fix: pull_policy build
This commit is contained in:
@@ -3,14 +3,12 @@ FROM python:3.8-alpine
|
||||
RUN apk add --no-cache gcc libc-dev linux-headers
|
||||
|
||||
# install pypi packages
|
||||
RUN rm -rf /django_project
|
||||
COPY . /django_project
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install /django_project
|
||||
RUN pip install uWSGI==2.0.21
|
||||
|
||||
COPY ./docker/uwsgi.ini /uwsgi.ini
|
||||
RUN rm -rf /scripts
|
||||
COPY ./scripts /scripts
|
||||
RUN chmod -R +x /scripts
|
||||
ENV PATH="/scripts:/py/bin:$PATH"
|
||||
|
||||
@@ -3,6 +3,7 @@ services:
|
||||
web:
|
||||
container_name: web
|
||||
build: ./docker/web
|
||||
pull_policy: build
|
||||
working_dir: /etc/nginx
|
||||
ports:
|
||||
- 80:80
|
||||
@@ -15,6 +16,7 @@ services:
|
||||
app:
|
||||
container_name: app
|
||||
build: .
|
||||
pull_policy: build
|
||||
working_dir: /django_project
|
||||
environment:
|
||||
DJANGO_SECRET_KEY: $DJANGO_SECRET_KEY
|
||||
|
||||
Reference in New Issue
Block a user