diff --git a/apps/hello/Dockerfile b/apps/hello/Dockerfile index 12377dc95..f63e29a7e 100644 --- a/apps/hello/Dockerfile +++ b/apps/hello/Dockerfile @@ -1,11 +1,11 @@ -FROM python:3-slim AS compile-image +FROM python:3.10-slim AS compile-image RUN apt-get update -y && mkdir /app && python3 -m venv /app/venv ENV PATH="/app/venv/bin:$PATH" COPY . /app WORKDIR /app RUN pip3 install 'streamsync[ds]' && pip3 install -r requirements.txt -FROM python:3-slim AS run-image +FROM python:3.10-slim AS run-image RUN apt-get update -y && mkdir /app COPY --from=compile-image /app /app ENV PATH="/app/venv/bin:$PATH" @@ -13,4 +13,4 @@ WORKDIR /app ENTRYPOINT [ "streamsync", "run" ] EXPOSE 5000 -CMD [ ".", "--port", "5000", "--host", "0.0.0.0" ] \ No newline at end of file +CMD [ ".", "--port", "5000", "--host", "0.0.0.0" ] diff --git a/docs/docs/deploy-with-docker.md b/docs/docs/deploy-with-docker.md index f0b32ff14..50adcf90b 100644 --- a/docs/docs/deploy-with-docker.md +++ b/docs/docs/deploy-with-docker.md @@ -17,14 +17,14 @@ A Dockerfile is a file with instructions that tell Docker how to build your imag You can use the following as-is, or as a starting point. It should be saved in your app's folder, together with `requirements.txt`, `main.py` and `ui.json`. ```docker -FROM python:3-slim AS compile-image +FROM python:3.10-slim AS compile-image RUN apt-get update -y && mkdir /app && python3 -m venv /app/venv ENV PATH="/app/venv/bin:$PATH" COPY . /app WORKDIR /app RUN pip3 install streamsync && pip3 install -r requirements.txt -FROM python:3-slim AS run-image +FROM python:3.10-slim AS run-image RUN apt-get update -y && mkdir /app COPY --from=compile-image /app /app ENV PATH="/app/venv/bin:$PATH"