statusd/Dockerfile

19 lines
390 B
Docker

# syntax=docker/dockerfile:1
FROM python:3.10.4-slim-buster
ENV PATH="/root/.local/bin:${PATH}"
RUN python3 -m pip install --user pipenv
RUN python --version
RUN apt update -y
RUN apt install tk -y
WORKDIR /app
COPY . .
WORKDIR /app/statusd_server
RUN pipenv install
WORKDIR /app
ENV PIPENV_PIPFILE=/app/statusd_server/Pipfile
CMD [ "pipenv", "run" , "python", "-m", "statusd_server" ]