1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-04 21:35:23 +02:00

feat(dockerfile): layered images [EE-4879] (#8301)

* multistage build to target production and storybook

* missing slash

* add storybook for windows too and build targets

* feature flag the storybook api

* remove kompose and prep for new FF lib

* todo comment for FF

* update to new feature flags library

* simplify logic

* fix compilation error

* simplified it
This commit is contained in:
Matt Hook 2023-02-13 11:28:32 +13:00 committed by GitHub
parent 58d66d3142
commit b2105f3614
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 60 additions and 24 deletions

View file

@ -1,4 +1,4 @@
FROM portainer/base
FROM portainer/base as production
LABEL org.opencontainers.image.title="Portainer" \
org.opencontainers.image.description="Docker container management made simple, with the worlds most popular GUI-based container management platform." \
@ -10,9 +10,19 @@ LABEL org.opencontainers.image.title="Portainer" \
com.docker.extension.publisher-url="https://www.portainer.io" \
com.docker.extension.additional-urls="[{\"title\":\"Website\",\"url\":\"https://www.portainer.io?utm_campaign=DockerCon&utm_source=DockerDesktop\"},{\"title\":\"Documentation\",\"url\":\"https://docs.portainer.io\"},{\"title\":\"Support\",\"url\":\"https://join.slack.com/t/portainer/shared_invite/zt-txh3ljab-52QHTyjCqbe5RibC2lcjKA\"}]"
COPY dist /
COPY dist/docker /
COPY dist/docker-compose /
COPY dist/helm /
COPY dist/kubectl /
COPY dist/mustache-templates /mustache-templates/
COPY dist/portainer /
COPY dist/public /public/
COPY build/docker-extension /
# storybook exists only in portainerci builds
COPY dist/storybook* /storybook/
VOLUME /data
WORKDIR /
@ -23,3 +33,4 @@ EXPOSE 8000
LABEL io.portainer.server true
ENTRYPOINT ["/portainer"]