mirror of
https://gitlab.sectorq.eu/jaydee/api_server.git
synced 2026-11-01 14:07:06 +01:00
build
This commit is contained in:
1 parent
8799190d24
commit
1c43f0b9fb
1 file changed
+14
+14
@@ -0,0 +1,14 @@
|
|||||||
|
FROM python:3.11-slim
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
COPY requirements.txt .
|
||||||
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
|
COPY app ./app
|
||||||
|
|
||||||
|
ENV API_TOKEN=changeme
|
||||||
|
|
||||||
|
EXPOSE 8000
|
||||||
|
|
||||||
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
|
||||||
Reference in new issue
Block a user