mirror of
https://github.com/FAUSheppy/icinga-webhook-gateway
synced 2025-12-05 23:11:43 +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
|
||||
|
||||
RUN apt update
|
||||
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
|
||||
FROM alpine
|
||||
RUN apk add --no-cache py3-pip
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN python3 -m pip install waitress
|
||||
RUN python3 -m pip install --no-cache-dir --break-system-packages waitress
|
||||
|
||||
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)
|
||||
COPY ./ .
|
||||
|
||||
Reference in New Issue
Block a user