This commit is contained in:
@@ -1,27 +1,17 @@
|
|||||||
# Example Dockerfile for arm64
|
FROM git.pi-farm.de/pi-farm/docker-baseimage-alpine:3.23
|
||||||
ARG BASE_IMAGE=alpine:latest
|
|
||||||
|
|
||||||
FROM ${BASE_IMAGE}
|
LABEL description="Alpine Baseimage with s6-overlay and lighttpd"
|
||||||
|
LABEL build_version="Pi-Farm version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||||
|
LABEL maintainer="Pi-Farm"
|
||||||
|
|
||||||
ARG MAINTAINER
|
RUN apk add --no-cache \
|
||||||
ARG TZ
|
lighttpd \
|
||||||
ARG APP_NAME
|
lighttpd-mod_auth
|
||||||
ARG APP_USER
|
|
||||||
|
|
||||||
LABEL maintainer="${MAINTAINER}"
|
COPY root/ /
|
||||||
LABEL org.opencontainers.image.title="${APP_NAME}"
|
|
||||||
|
|
||||||
ENV TZ=${TZ}
|
EXPOSE 80
|
||||||
ENV USER=${APP_USER}
|
|
||||||
|
|
||||||
RUN apk add --no-cache tzdata ca-certificates
|
VOLUME ["/config","/app/www"]
|
||||||
|
|
||||||
WORKDIR /app
|
ENTRYPOINT ["/init"]
|
||||||
COPY ./config /app/config
|
|
||||||
COPY ./data /app/data
|
|
||||||
|
|
||||||
RUN adduser -D ${APP_USER} && chown -R ${APP_USER}:${APP_USER} /app
|
|
||||||
|
|
||||||
USER ${APP_USER}
|
|
||||||
|
|
||||||
CMD ["sh"]
|
|
||||||
Reference in New Issue
Block a user