mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-01-20 20:33:57 +08:00
21 lines
443 B
Docker
21 lines
443 B
Docker
## Buildstage ##
|
|
FROM ghcr.io/linuxserver/baseimage-alpine:3.15 as buildstage
|
|
|
|
# Build arguments
|
|
ARG VERSION
|
|
|
|
# Add version number for use in container init script
|
|
RUN mkdir -p /root-layer/etc && \
|
|
echo "$VERSION" > /root-layer/etc/version.tc989
|
|
|
|
# Stage local files
|
|
COPY root/ /root-layer/
|
|
|
|
## Single layer deployed image ##
|
|
FROM scratch
|
|
|
|
LABEL maintainer="TheCaptain989"
|
|
|
|
# Copy files from buildstage
|
|
COPY --from=buildstage /root-layer/ /
|