Compare commits
3 Commits
9494cae59b
...
0.4.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
709fc3b1a4
|
|||
|
0988d53231
|
|||
|
|
02d225f2b2
|
@@ -1,8 +1,8 @@
|
|||||||
FROM docker.io/python:3.11-slim AS base
|
FROM docker.io/python:3.12-slim AS base
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
FROM base as dev
|
FROM base AS dev
|
||||||
|
|
||||||
RUN pip3 install poetry
|
RUN pip3 install poetry
|
||||||
|
|
||||||
@@ -10,14 +10,16 @@ ENV POETRY_VIRTUALENVS_IN_PROJECT=true
|
|||||||
|
|
||||||
CMD [ "poetry", "run", "uvicorn", "--app-dir", "projectorpi_web", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
CMD [ "poetry", "run", "uvicorn", "--app-dir", "projectorpi_web", "app:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
|
||||||
|
|
||||||
FROM base as prod
|
FROM base AS prod
|
||||||
|
|
||||||
ADD requirements.txt ./
|
ADD requirements.txt ./
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y build-essential \
|
RUN apt-get update && apt-get install -y build-essential curl \
|
||||||
|
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \
|
||||||
&& pip3 install --no-cache --upgrade pip \
|
&& pip3 install --no-cache --upgrade pip \
|
||||||
&& pip3 install --no-cache -r requirements.txt \
|
&& pip3 install --no-cache -r requirements.txt \
|
||||||
&& apt-get remove -y build-essential
|
&& /root/.cargo/bin/rustup self uninstall -y \
|
||||||
|
&& apt-get remove -y build-essential curl
|
||||||
|
|
||||||
ADD projectorpi_web ./projectorpi_web
|
ADD projectorpi_web ./projectorpi_web
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user