Skip to content

Commit 09f8962

Browse files
committed
updates Dockerfile
1 parent cb593d4 commit 09f8962

File tree

4 files changed

+27
-2
lines changed

4 files changed

+27
-2
lines changed

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ services:
5858
command: beat
5959

6060
flower:
61-
<<: *common
61+
<<: [*common, *env]
6262
command: flower
6363
environment:
6464
- DEBUG=true

docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ COPY --chown=hope:unicef --from=production /venv /venv
148148
COPY --from=builder /usr/local/bin/uwsgi /usr/local/bin/uv /usr/local/bin/
149149
RUN --mount=type=cache,target=/root/.uv-cache \
150150
uv --cache-dir=/root/.uv-cache pip install --no-deps . \
151-
&& rm -fr /app
151+
&& rm -fr /app/* \
152+
152153

153154

154155
EXPOSE 8000

docker/bin/docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ export STATIC_ROOT="${STATIC_ROOT:-/var/run/app/static}"
66
export UWSGI_PROCESSES="${UWSGI_PROCESSES:-"4"}"
77
export DJANGO_SETTINGS_MODULE="country_workspace.config.settings"
88

9+
mkdir -p /app/
10+
chown -R hope:unicef /app
11+
cd /app
12+
913
case "$1" in
1014
run)
1115
django-admin upgrade --with-check

docker/conf/uwsgi.ini

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[uwsgi]
2+
3+
http-socket=0.0.0.0:8888
4+
virtualenv=/venv
5+
enable-threads=0
6+
honour-range=1
7+
master=1
8+
module=birder.config.wsgi
9+
processes=$(UWSGI_PROCESSES)
10+
buffer-size = 8192
11+
static-map = /static/=$(STATIC_ROOT)
12+
static-gzip-all=true
13+
http-keepalive = 1
14+
collect-header=Content-Type RESPONSE_CONTENT_TYPE
15+
;socket = /tmp/birder.sock
16+
;chmod-socket = 660
17+
;vacuum = true
18+
;die-on-term = true
19+
;uid = brd
20+
;gid = os4d

0 commit comments

Comments
 (0)