mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-02 22:04:06 +02:00
Update Dockerfile
This commit is contained in:
@@ -14,12 +14,14 @@
|
|||||||
# 1 Build Image #
|
# 1 Build Image #
|
||||||
#################
|
#################
|
||||||
|
|
||||||
|
ARG BUILD_FROM
|
||||||
|
FROM $BUILD_FROM as base_image
|
||||||
|
|
||||||
FROM portainer/agent:alpine as original_agent
|
FROM portainer/agent:alpine as original_agent
|
||||||
ENV PORTAINER_AGENT_ARGS=""
|
ENV PORTAINER_AGENT_ARGS=""
|
||||||
|
|
||||||
ARG BUILD_FROM
|
# Get initial base
|
||||||
ENV BUILD_BASE="$BUILD_FROM"
|
COPY --from=base_image / /
|
||||||
FROM $BUILD_BASE
|
|
||||||
|
|
||||||
# Copy Portainer agent binaries
|
# Copy Portainer agent binaries
|
||||||
COPY --from=original_agent /app /app
|
COPY --from=original_agent /app /app
|
||||||
|
|||||||
Reference in New Issue
Block a user