1- FROM node:20-alpine as frontend
1+ FROM node:20-alpine AS frontend
22
33COPY server/frontend /src
44RUN chown -R node:node /src
@@ -8,7 +8,7 @@ WORKDIR /src
88RUN npm install
99RUN npm run production
1010
11- FROM python:3.11-alpine as backend
11+ FROM python:3.11-alpine AS backend
1212
1313RUN 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.
6363USER worker
64- ENV PATH "${PATH}:/home/worker/.local/bin"
64+ ENV PATH= "${PATH}:/home/worker/.local/bin"
6565RUN pip install --no-cache-dir --no-index --find-links /var/cache/wheels --no-deps -q /src[docker,sentry,server,taskmanager]
6666RUN 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
7171WORKDIR /src/server
7272
7373# Collect staticfiles, including Vue.js build
7474RUN python manage.py collectstatic --no-input
7575
7676# Run with gunicorn, using container's port 80
77- ENV PORT 80
77+ ENV PORT= 80
7878EXPOSE 80
7979CMD ["gunicorn" , "--bind" , "0.0.0.0:80" , "--access-logfile" , "-" , "--capture-output" , "server.wsgi" ]
0 commit comments