mirror of
https://github.com/yavook/kiwi-simple-metrics.git
synced 2024-11-21 15:23:01 +00:00
24 lines
No EOL
444 B
Docker
24 lines
No EOL
444 B
Docker
FROM python:3.11-alpine
|
|
|
|
ENV \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
# copy app source
|
|
COPY . /usr/src/app
|
|
|
|
RUN set -ex; \
|
|
# install buildtime deps
|
|
apk add --no-cache \
|
|
--virtual .build-deps \
|
|
build-base \
|
|
gcc \
|
|
linux-headers \
|
|
; \
|
|
# install app
|
|
pip3 --no-cache-dir install /usr/src/app; \
|
|
# remove buildtime deps
|
|
apk del --no-cache \
|
|
.build-deps \
|
|
;
|
|
|
|
ENTRYPOINT ["kiwi-simple-metrics"] |