mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-06 07:21:38 +01:00
feat: switch to alpine image
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -1,18 +1,13 @@
|
|||||||
FROM python:3.9-slim-bookworm
|
FROM alpine
|
||||||
|
RUN apk add --no-cache py3-pip
|
||||||
RUN apt update
|
RUN apk add --no-cache curl
|
||||||
RUN apt install python3-pip -y
|
|
||||||
RUN python3 -m pip install --upgrade pip
|
|
||||||
RUN apt install curl -y
|
|
||||||
RUN apt autoremove -y
|
|
||||||
RUN apt clean
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
RUN python3 -m pip install waitress
|
RUN python3 -m pip install --no-cache-dir --break-system-packages waitress
|
||||||
|
|
||||||
COPY req.txt .
|
COPY req.txt .
|
||||||
RUN python3 -m pip install --no-cache-dir -r req.txt
|
RUN python3 -m pip install --no-cache-dir --break-system-packages -r req.txt
|
||||||
|
|
||||||
# precreate database directory for mount (will otherwise be created at before_first_request)
|
# precreate database directory for mount (will otherwise be created at before_first_request)
|
||||||
COPY ./ .
|
COPY ./ .
|
||||||
|
|||||||
Reference in New Issue
Block a user