Update container files to work with Podman

This commit is contained in:
Mark Veidemanis 2025-01-23 11:26:58 +00:00
parent 054e9caca0
commit 2ef2249be7
Signed by: m
GPG Key ID: 5ACFCEED46C0904F
2 changed files with 5 additions and 5 deletions

View File

@ -1,14 +1,14 @@
# syntax=docker/dockerfile:1
FROM python:3.10
RUN useradd -d /code pathogen
RUN useradd -d /code xf
RUN mkdir /code
RUN chown pathogen:pathogen /code
RUN chown xf:xf /code
RUN mkdir /venv
RUN chown pathogen:pathogen /venv
RUN chown xf:xf /venv
USER pathogen
USER xf
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
WORKDIR /code

View File

@ -8,7 +8,7 @@ stop:
docker-compose -f docker-compose.prod.yml --env-file=stack.env down
log:
docker-compose -f docker-compose.prod.yml --env-file=stack.env logs -f
docker-compose -f docker-compose.prod.yml --env-file=stack.env logs -f --names
run-infra:
docker-compose -f docker-compose.infra.yml --env-file=stack.env up -d