mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-06 14:08:59 +00:00
first commit
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
FROM python:3.7-alpine as build
|
||||
WORKDIR /wheels
|
||||
RUN apk add --no-cache \
|
||||
g++ \
|
||||
gcc \
|
||||
git \
|
||||
libxml2 \
|
||||
libxml2-dev \
|
||||
libxslt-dev \
|
||||
linux-headers
|
||||
COPY requirements.txt /opt/maigret/
|
||||
RUN pip3 wheel -r /opt/maigret/requirements.txt
|
||||
|
||||
|
||||
FROM python:3.7-alpine
|
||||
WORKDIR /opt/maigret
|
||||
ARG VCS_REF
|
||||
ARG VCS_URL="https://gitlab.com/soxoj/maigret"
|
||||
LABEL org.label-schema.vcs-ref=$VCS_REF \
|
||||
org.label-schema.vcs-url=$VCS_URL
|
||||
COPY --from=build /wheels /wheels
|
||||
COPY . /opt/maigret/
|
||||
RUN pip3 install -r requirements.txt -f /wheels \
|
||||
&& rm -rf /wheels \
|
||||
&& rm -rf /root/.cache/pip/*
|
||||
|
||||
ENTRYPOINT ["python", "maigret.py"]
|
||||
Reference in New Issue
Block a user