forked from webhippie/redirects
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (33 loc) · 858 Bytes
/
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 webhippie/alpine:latest
MAINTAINER Thomas Boerger <[email protected]>
EXPOSE 8080
VOLUME ["/var/lib/redirects"]
RUN apk update && \
apk add \
ca-certificates \
bash && \
rm -rf \
/var/cache/apk/* && \
addgroup \
-g 1000 \
redirects && \
adduser -D \
-h /var/lib/redirects \
-s /bin/bash \
-G redirects \
-u 1000 \
redirects
COPY redirects /usr/bin/
USER redirects
ENTRYPOINT ["/usr/bin/redirects"]
CMD ["server"]
# ARG VERSION
# ARG BUILD_DATE
# ARG VCS_REF
# LABEL org.label-schema.version=$VERSION
# LABEL org.label-schema.build-date=$BUILD_DATE
# LABEL org.label-schema.vcs-ref=$VCS_REF
LABEL org.label-schema.vcs-url="https://github.com/webhippie/redirects.git"
LABEL org.label-schema.name="Redirects"
LABEL org.label-schema.vendor="Thomas Boerger"
LABEL org.label-schema.schema-version="1.0"