add dockerfile

This commit is contained in:
2024-04-26 18:02:18 +02:00
parent 0487576a60
commit b71253f220
+13
View File
@@ -0,0 +1,13 @@
FROM python:alpine3.19
WORKDIR /usr/app
ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
COPY requirements.txt .
RUN pip install -r requirements.txt
COPY src .
CMD ["python3", "-u", "main.py"]