Commit 8b807ab Alan Christie
committed
1 parent 2eb4b0f commit 8b807ab Copy full SHA for 8b807ab
File tree 4 files changed +0
-25
lines changed
4 files changed +0
-25
lines changed Original file line number Diff line number Diff line change 80
80
run : |
81
81
pip install --requirement build-requirements.txt
82
82
pre-commit run --all-files
83
- - name : Compile requirements.txt
84
- # We need to put the file in $HOME
85
- # - a simple way to ensure it's
86
- # available between steps in the same job.
87
- run : |
88
- pip install --upgrade pip
89
- pip install poetry==1.7.1
90
- poetry export --without-hashes --without dev --output requirements.txt
91
83
- name : Docker build
92
84
uses : docker/build-push-action@v4
93
85
with :
Original file line number Diff line number Diff line change @@ -127,11 +127,6 @@ jobs:
127
127
run : |
128
128
pip install --requirement build-requirements.txt
129
129
pre-commit run --all-files
130
- - name : Compile requirements.txt
131
- run : |
132
- pip install --upgrade pip
133
- pip install poetry==1.7.1
134
- poetry export --without-hashes --without dev --output requirements.txt
135
130
- name : Build
136
131
uses : docker/build-push-action@v4
137
132
with :
Original file line number Diff line number Diff line change @@ -149,11 +149,6 @@ jobs:
149
149
run : |
150
150
pip install --requirement build-requirements.txt
151
151
pre-commit run --all-files
152
- - name : Compile requirements.txt
153
- run : |
154
- pip install --upgrade pip
155
- pip install poetry==1.7.1
156
- poetry export --without-hashes --without dev --output requirements.txt
157
152
- name : Docker build
158
153
uses : docker/build-push-action@v4
159
154
with :
Original file line number Diff line number Diff line change 1
1
FROM python:3.11.7-slim-bullseye AS python-base
2
2
3
-
4
3
ENV PYTHONUNBUFFERED 1
5
4
ENV PYTHONDONTWRITEBYTECODE 1
6
5
@@ -18,24 +17,20 @@ RUN apt-get update -y && \
18
17
apt-get clean && \
19
18
rm -rf /var/lib/apt/lists/*
20
19
21
-
22
20
# another stage for poetry installation. this ensures poetry won't end
23
21
# up in final image where it's not needed
24
22
FROM python-base AS poetry-base
25
23
26
24
ARG POETRY_VERSION=1.7.1
27
-
28
25
RUN pip install --no-cache-dir poetry==${POETRY_VERSION}
29
26
30
27
WORKDIR /
31
28
COPY poetry.lock pyproject.toml /
32
29
33
-
34
30
# POETRY_VIRTUALENVS_IN_PROJECT tells poetry to create the venv to
35
31
# project's directory (.venv). This way the location is predictable
36
32
RUN POETRY_VIRTUALENVS_IN_PROJECT=true poetry install --no-root --only main --no-directory
37
33
38
-
39
34
# final stage. only copy the venv with installed packages and point
40
35
# paths to it
41
36
FROM python-base as final
@@ -45,7 +40,6 @@ COPY --from=poetry-base /.venv /.venv
45
40
ENV PYTHONPATH="${PYTHONPATH}:/.venv/lib/python3.11/site-packages/"
46
41
ENV PATH=/.venv/bin:$PATH
47
42
48
-
49
43
WORKDIR /srv/logs
50
44
WORKDIR /code/logs
51
45
WORKDIR /code
@@ -54,7 +48,6 @@ COPY nginx.conf /etc/nginx/nginx.conf
54
48
COPY django_nginx.conf /etc/nginx/sites-available/default.conf
55
49
COPY proxy_params /etc/nginx/frag_proxy_params
56
50
57
-
58
51
RUN ln -s /etc/nginx/sites-available/default.conf /etc/nginx/sites-enabled
59
52
60
53
COPY . ./
You can’t perform that action at this time.
0 commit comments