This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
covid-19-discord-bot/Dockerfile_report

33 lines
No EOL
675 B
Text

# Pull Python 3.8.1 on alpine
FROM python:3.8.1-alpine
RUN apk --no-cache add gcc \
musl-dev \
python3-dev
# Create a new user to run as and set the working directory
ENV USER=covidreport
ENV UID=991
ENV GID=991
RUN addgroup -g "${GID}" covidreport
RUN adduser \
--disabled-password \
--gecos "" \
--home "/home/covidreport" \
--ingroup "${USER}" \
--uid "${UID}" \
"${USER}"
USER covidreport
WORKDIR /home/covidreport/
ENV PATH="${PATH}:/home/covidreport/.local/bin"
COPY Pipfile Pipfile
RUN pip install pipenv
RUN pipenv install Pipfile
COPY covid_report.py covid_report.py
ENTRYPOINT [ "pipenv", "run", "python", "covid_report.py" ]