inbox/Dockerfile

13 lines
304 B
Docker
Raw Normal View History

2024-02-17 10:31:05 +00:00
FROM python:alpine3.18
2024-02-17 08:52:26 +00:00
WORKDIR /app
2024-02-17 10:31:05 +00:00
COPY . /app
2024-02-17 08:52:26 +00:00
2024-02-17 11:00:46 +00:00
RUN apk update && apk add --no-cache git gcc curl
2024-02-17 10:31:05 +00:00
RUN curl -sSL https://install.python-poetry.org | python
ENV PATH="${PATH}:/root/.local/bin"
RUN poetry config virtualenvs.create false && poetry install --no-dev
2024-02-17 08:52:26 +00:00
EXPOSE 8000
2024-02-17 10:31:05 +00:00
CMD ["python", "server.py"]