-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
29 lines (22 loc) · 1.07 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
# Copyright © Michal Čihař <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
FROM python:3.12.8-alpine
LABEL name="wlc"
LABEL maintainer="Michal Čihař <[email protected]>"
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ř <[email protected]>"
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 setup.py /app/
COPY ./wlc/ /app/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
RUN pip install --no-cache-dir -e /app && adduser -S weblate
WORKDIR /home/weblate
USER weblate
ENTRYPOINT ["wlc"]