This commit is contained in:
32
Dockerfile
32
Dockerfile
@@ -1,27 +1,17 @@
|
||||
# Example Dockerfile for amd64
|
||||
ARG BASE_IMAGE=alpine:latest
|
||||
FROM git.pi-farm.de/pi-farm/docker-baseimage-alpine:3.23
|
||||
|
||||
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
|
||||
ARG TZ
|
||||
ARG APP_NAME
|
||||
ARG APP_USER
|
||||
RUN apk add --no-cache \
|
||||
lighttpd \
|
||||
lighttpd-mod_auth
|
||||
|
||||
LABEL maintainer="${MAINTAINER}"
|
||||
LABEL org.opencontainers.image.title="${APP_NAME}"
|
||||
COPY root/ /
|
||||
|
||||
ENV TZ=${TZ}
|
||||
ENV USER=${APP_USER}
|
||||
EXPOSE 80
|
||||
|
||||
RUN apk add --no-cache tzdata ca-certificates
|
||||
VOLUME ["/config","/app/www"]
|
||||
|
||||
WORKDIR /app
|
||||
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"]
|
||||
ENTRYPOINT ["/init"]
|
||||
Reference in New Issue
Block a user