FROM alpine:3.17 LABEL version="1.0.0" \ author="Daniel Sommer " \ license="MIT" MAINTAINER Daniel Sommer ENV LANG=C.UTF-8 RUN apk upgrade --no-cache --progress \ && apk add --no-cache --progress \ tzdata \ git \ go \ && ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime \ && echo "Europe/Berlin" > /etc/timezone \ && git clone https://git.velvettear.de/velvettear/worklog.git /tmp/worklog \ && cd /tmp/worklog \ && go build \ && mv /tmp/worklog/worklog /usr/bin/worklog \ && rm -rf /tmp/worklog \ && apk del --no-cache --progress \ git \ go EXPOSE 5000 ENTRYPOINT ["worklog"]