diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000000..cac78559d6 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM python:3.10-slim-buster + +ENV PYTHONDONTWRITEBYTECODE 1 +ENV PYTHONUNBUFFERED 1 +ENV CARGO_HOME=/root/.cargo +ENV PATH=$CARGO_HOME/bin:$PATH + +RUN apt update && apt install -y \ + curl \ + build-essential \ + && curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ + && cargo --version \ + && rustc --version + +WORKDIR /app + +COPY requirements.txt . + +RUN pip install --no-cache-dir -r requirements.txt + +COPY . . + +EXPOSE 20213 + +CMD ["uvicorn", "webserver.main:app", "--host", "0.0.0.0", "--port", "20213"]