-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 1.23 KB
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 1.23 KB
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
# Copyright © Michal Čihař <michal@weblate.org>
# SPDX-License-Identifier: GPL-3.0-or-later
FROM weblate/base:2026.18.0@sha256:deb1c1ff2bfcbf8d7dfab3a819b60b2b84ec0e66b27fee487db3485ab2e6a2ae
LABEL name="wlc"
LABEL maintainer="Michal Čihař <michal@weblate.org>"
LABEL org.opencontainers.image.url="https://weblate.org/"
LABEL org.opencontainers.image.documentation="https://docs.weblate.org/en/latest/wlc.html"
LABEL org.opencontainers.image.source="https://github.com/WeblateOrg/wlc"
LABEL org.opencontainers.image.author="Michal Čihař <michal@weblate.org>"
LABEL org.opencontainers.image.vendor="Weblate"
LABEL org.opencontainers.image.title="wlc"
LABEL org.opencontainers.image.description="Command-line client for Weblate"
LABEL org.opencontainers.image.licenses="GPL-3.0-or-later"
COPY README.md LICENSE pyproject.toml /app/src/
COPY ./wlc/ /app/src/wlc
# This hack is widely applied to avoid python printing issues in docker containers.
# See: https://github.com/Docker-Hub-frolvlad/docker-alpine-python3/pull/13
ENV PYTHONUNBUFFERED=1
# hadolint ignore=SC1091
RUN \
uv venv /app/venv && \
. /app/venv/bin/activate && \
uv pip install --no-cache-dir -e /app/src
WORKDIR /home/weblate
USER weblate
ENTRYPOINT ["/app/venv/bin/wlc"]