structables/Dockerfile
Kumi ebfa81f38f
Some checks failed
Python Package CI/CD / Publish to PyPI (push) Successful in 1m31s
Docker CI/CD / Docker Build and Push to Docker Hub (push) Has been cancelled
chore: Check if cache directory is writable, remove read_only from docker-compose examples
2025-04-09 21:20:15 +02:00

19 lines
351 B
Docker

FROM alpine:3.21
ENV APP_ENV=/opt/venv
ENV PATH="${APP_ENV}/bin:$PATH"
RUN apk add --no-cache py3-pip uwsgi-python3 && \
python3 -m venv $APP_ENV
COPY . /app
RUN $APP_ENV/bin/pip install --no-cache-dir pip && \
$APP_ENV/bin/pip install /app && \
adduser -S -D -H structables
EXPOSE 8002
USER structables
ENTRYPOINT ["/app/entrypoint.sh"]