added docker

This commit is contained in:
2024-03-07 20:28:37 +03:00
parent 098eca14fb
commit 52b72fd23a
4 changed files with 46 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM python:3.12
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN pip install pipenv
WORKDIR /app
COPY Pipfile Pipfile.lock /app/
RUN pipenv install
COPY . /app/
EXPOSE 8000
COPY ./docker-entrypoint.sh /docker-entrypoirnt.sh
RUN chmod +x /docker-entrypoint.sh
CMD ["/docker-entrypoint.sh"]