forked from vzhd1701/evernote-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (26 loc) · 1.24 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM debian:12-slim AS build
ENV BUILD_POETRY_VERSION=1.6.1
RUN apt-get update && \
apt-get install --no-install-suggests --no-install-recommends --yes python3-venv python3-pip && \
python3 -m venv /venv && \
/venv/bin/pip install --upgrade pip
RUN pip3 install --break-system-packages poetry==$BUILD_POETRY_VERSION
FROM build AS build-venv
COPY . /app
WORKDIR /app
RUN poetry build --no-interaction -f wheel
RUN /venv/bin/pip install --disable-pip-version-check dist/*.whl
FROM gcr.io/distroless/python3-debian12
ENV INSIDE_DOCKER_CONTAINER=1
LABEL maintainer="vzhd1701 <[email protected]>" \
org.opencontainers.image.title="evernote-backup" \
org.opencontainers.image.description="Backup & export Evernote notes and notebooks" \
org.opencontainers.image.authors="vzhd1701 <[email protected]>" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.documentation="https://github.com/vzhd1701/evernote-backup" \
org.opencontainers.image.url="https://github.com/vzhd1701/evernote-backup" \
org.opencontainers.image.source="https://github.com/vzhd1701/evernote-backup.git"
COPY --from=build-venv /venv /venv
WORKDIR /tmp
ENTRYPOINT ["/venv/bin/evernote-backup"]
EXPOSE 10500