File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed
pythonkr_backend/pythonkr_backend/settings Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,6 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
5
5
ENV PYTHONDONTWRITEBYTECODE=1
6
6
ENV PYTHONUNBUFFERED=1
7
7
8
- # install system dependencies
9
- RUN apt-get update \
10
- && apt-get -y install gcc postgresql \
11
- && apt-get clean
12
-
13
8
WORKDIR /app
14
9
15
10
# Copy the project into the image
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ cd /app/pythonkr_backend
7
7
export DJANGO_SETTINGS_MODULE=" pythonkr_backend.settings.localtesting"
8
8
./manage.py migrate --no-input
9
9
./manage.py collectstatic --clear --noinput
10
+ export DJANGO_SUPERUSER_PASSWORD=test
11
+ ./manage.py createsuperuser --username
test --email
[email protected] --noinput
10
12
gunicorn --workers=2 \
11
13
-b :8080 \
12
14
--access-logfile - \
Original file line number Diff line number Diff line change 9
9
'HOST' : 'db' ,
10
10
'NAME' : 'pk' ,
11
11
'USER' : 'pk' ,
12
- 'PASSWD ' : 'pktesting' ,
12
+ 'PASSWORD ' : 'pktesting' ,
13
13
}
14
14
}
15
15
You can’t perform that action at this time.
0 commit comments