mattermost_bot/Dockerfile

17 lines
498 B
Text
Raw Permalink Normal View History

2023-04-17 17:16:03 +00:00
FROM python:3.11-alpine as base
FROM base as builder
# RUN sed -i 's|v3\.\d*|edge|' /etc/apk/repositories
2023-04-17 17:22:37 +00:00
RUN apk update && apk add --no-cache gcc musl-dev libffi-dev git
2023-04-17 17:16:03 +00:00
COPY requirements.txt .
RUN pip install -U pip setuptools wheel && pip install --user -r ./requirements.txt && rm ./requirements.txt
FROM base as runner
RUN apk update && apk add --no-cache libffi-dev
COPY --from=builder /root/.local /usr/local
COPY . /app
FROM runner
WORKDIR /app
CMD ["python", "main.py"]