influx-smtp-gateway/Dockerfile
2022-02-16 13:14:22 +05:30

22 lines
435 B
Docker

# pull official base image
FROM python:3.9.6-alpine
# set work directory
WORKDIR /usr/src/app
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# install dependencies
RUN pip install --upgrade pip
COPY ./requirements.txt .
RUN pip install -r requirements.txt
# add user
RUN adduser --disabled-password --gecos '' service
USER service
# copy project
COPY . .
ENTRYPOINT ["/usr/src/app/entrypoint.sh"]