FROM python:3.12-windowsservercore WORKDIR C:/app ARG APP_VERSION=dev ENV APP_VERSION=${APP_VERSION} ENV SERVICE_PORT=2456 COPY requirements.txt . RUN python -m pip install --upgrade pip && python -m pip install -r requirements.txt COPY . . RUN powershell -NoProfile -Command "Set-Content -Encoding ascii -Path C:/app/VERSION -Value $env:APP_VERSION" EXPOSE 2456 CMD powershell -NoProfile -Command "Start-Process -FilePath 'C:/app/bin/pico-tcp.exe' -WorkingDirectory 'C:/app/bin'; python manage.py runserver 0.0.0.0:$env:SERVICE_PORT"