mirror of
https://framagit.org/fiat-tux/hat-softwares/lutim.git
synced 2026-03-28 17:42:54 +01:00
27 lines
693 B
Docker
27 lines
693 B
Docker
FROM alpine:3.9
|
|
|
|
ARG BUILD_DATE
|
|
ARG VCS_REF
|
|
ARG VERSION
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
|
org.label-schema.name="Let's Upload That Image" \
|
|
org.label-schema.url="https://lut.im/" \
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
org.label-schema.vcs-url="https://git.framasoft.org/luc/lutim" \
|
|
org.label-schema.vendor="Luc Didry" \
|
|
org.label-schema.version=$VERSION \
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
RUN adduser -D lutim \
|
|
&& addgroup lutim root
|
|
|
|
COPY . /home/lutim
|
|
RUN chmod -R g+rwX /home/lutim
|
|
|
|
WORKDIR /home/lutim
|
|
RUN /bin/sh /home/lutim/docker/build.sh
|
|
|
|
USER lutim
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["/bin/sh", "/home/lutim/docker/entrypoint.sh"] |