mirror of
https://github.com/yavook/kiwi-simple-metrics.git
synced 2024-11-22 07:33:00 +00:00
Merge branch 'release/0.1.3'
This commit is contained in:
commit
5d7857cf57
1 changed files with 8 additions and 4 deletions
12
Dockerfile
12
Dockerfile
|
@ -3,18 +3,22 @@ FROM python:3.11-alpine
|
||||||
ENV \
|
ENV \
|
||||||
PYTHONUNBUFFERED=1
|
PYTHONUNBUFFERED=1
|
||||||
|
|
||||||
|
# copy app source
|
||||||
COPY . /usr/src/app
|
COPY . /usr/src/app
|
||||||
|
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
# buildtime deps
|
# install buildtime deps
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
--virtual .build-deps \
|
--virtual .build-deps \
|
||||||
build-base \
|
build-base \
|
||||||
gcc \
|
gcc \
|
||||||
linux-headers \
|
linux-headers \
|
||||||
|
; \
|
||||||
|
# install app
|
||||||
|
pip3 --no-cache-dir install /usr/src/app; \
|
||||||
|
# remove buildtime deps
|
||||||
|
apk del --no-cache \
|
||||||
|
.build-deps \
|
||||||
;
|
;
|
||||||
|
|
||||||
RUN set -ex; \
|
|
||||||
pip3 --no-cache-dir install /usr/src/app
|
|
||||||
|
|
||||||
ENTRYPOINT ["kiwi-simple-metrics"]
|
ENTRYPOINT ["kiwi-simple-metrics"]
|
Loading…
Reference in a new issue