From 8cdbf18befd709a88100934cce953572b3a5f473 Mon Sep 17 00:00:00 2001 From: Hemna Date: Thu, 17 Oct 2024 17:10:59 -0400 Subject: [PATCH] Add final stages in Dockerfile This patch adds another final stage in the Dockerfile --- docker/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 855afbd..33747fe 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.11-slim as build +FROM python:3.11-slim AS build ARG VERSION=3.4.0 # pass this in as 'dev' if you want to install from github repo vs pypi @@ -40,7 +40,7 @@ RUN set -ex \ ### Final stage -FROM build as final +FROM build AS install WORKDIR /app RUN pip3 install -U pip @@ -64,6 +64,8 @@ RUN aprsd --version ADD bin/setup.sh /app ADD bin/admin.sh /app + +FROM install AS final # For the web admin interface EXPOSE 8001