mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-10 21:36:18 +00:00
Revert "build: slim down the docker container (#60)"
This reverts commit 80b858c578.
This commit is contained in:
32
Dockerfile
32
Dockerfile
@@ -1,36 +1,12 @@
|
||||
## Build dependencies
|
||||
FROM python:3.11-slim as dependencies
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends gcc git \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN python -m venv /opt/venv
|
||||
ENV PATH="/opt/venv/bin:$PATH"
|
||||
|
||||
COPY requirements.txt .
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
## Image
|
||||
FROM python:3.11-slim
|
||||
|
||||
ARG GITHUB_TOKEN
|
||||
ENV GITHUB_TOKEN $GITHUB_TOKEN
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
RUN apt-get update && \
|
||||
apt-get install -y --no-install-recommends curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV PATH="/opt/venv/bin:$PATH"
|
||||
|
||||
COPY --from=dependencies /opt/venv /opt/venv
|
||||
COPY . .
|
||||
|
||||
VOLUME persistance
|
||||
|
||||
CMD docker/run-backend.sh
|
||||
HEALTHCHECK CMD docker/run-healthcheck.sh
|
||||
|
||||
EXPOSE 8000
|
||||
CMD [ "python3", "-m" , "sanic", "app:app", "--fast", "--access-logs", "--motd", "--noisy-exceptions", "-H", "0.0.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user