Skip to content

Commit 06384a3

Browse files
ci: fix CI warnings
1 parent 07c3837 commit 06384a3

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
rev: v3.19.1
1212
hooks:
1313
- id: pyupgrade
14-
args: ['--py38-plus']
14+
args: ['--py39-plus']
1515
- repo: https://github.com/ambv/black
1616
rev: 25.1.0
1717
hooks:
@@ -30,4 +30,4 @@ repos:
3030
entry: bash -c 'cd server/frontend && npm run lint'
3131
language: system
3232
files: ^server/frontend/.*\.(js|mjs|cjs|vue)$
33-
stages: [ commit ]
33+
stages: [ pre-commit ]

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine as frontend
1+
FROM node:20-alpine AS frontend
22

33
COPY server/frontend /src
44
RUN chown -R node:node /src
@@ -8,7 +8,7 @@ WORKDIR /src
88
RUN npm install
99
RUN npm run production
1010

11-
FROM python:3.11-alpine as backend
11+
FROM python:3.11-alpine AS backend
1212

1313
RUN apk add --no-cache build-base git linux-headers mariadb-dev
1414

@@ -61,19 +61,19 @@ RUN mkdir -p \
6161
# Note: the extras must be duplicated above in the Python
6262
# script to pre-install dependencies.
6363
USER worker
64-
ENV PATH "${PATH}:/home/worker/.local/bin"
64+
ENV PATH="${PATH}:/home/worker/.local/bin"
6565
RUN pip install --no-cache-dir --no-index --find-links /var/cache/wheels --no-deps -q /src[docker,sentry,server,taskmanager]
6666
RUN mkdir -m 0700 /home/worker/.ssh && cp /src/misc/sshconfig /home/worker/.ssh/config && ssh-keyscan github.com > /home/worker/.ssh/known_hosts
6767

6868
# Use a custom settings file that can be overwritten
69-
ENV DJANGO_SETTINGS_MODULE "server.settings_docker"
69+
ENV DJANGO_SETTINGS_MODULE="server.settings_docker"
7070

7171
WORKDIR /src/server
7272

7373
# Collect staticfiles, including Vue.js build
7474
RUN python manage.py collectstatic --no-input
7575

7676
# Run with gunicorn, using container's port 80
77-
ENV PORT 80
77+
ENV PORT=80
7878
EXPOSE 80
7979
CMD ["gunicorn", "--bind", "0.0.0.0:80", "--access-logfile", "-", "--capture-output", "server.wsgi"]

0 commit comments

Comments
 (0)