mirror of
https://github.com/fuckpiracyshield/api.git
synced 2024-12-21 10:20:49 +01:00
24 lines
319 B
Docker
24 lines
319 B
Docker
FROM python:3.11.5-alpine
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /srv/app
|
|
|
|
RUN addgroup -S user && adduser -S user -G user
|
|
|
|
USER user
|
|
|
|
COPY requirements.txt .
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
COPY ./data .
|
|
|
|
RUN source data/environment.sh
|
|
|
|
EXPOSE 58008
|
|
|
|
CMD ["make", "run_server"]
|