29 lines
670 B
Text
29 lines
670 B
Text
|
FROM alpine:3.17
|
||
|
|
||
|
LABEL version="1.0.0" \
|
||
|
author="Daniel Sommer <daniel.sommer@nux.de>" \
|
||
|
license="MIT"
|
||
|
|
||
|
MAINTAINER Daniel Sommer <daniel.sommer@nux.de>
|
||
|
|
||
|
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"]
|