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:
parent
58d66d3142
commit
b2105f3614
5 changed files with 60 additions and 24 deletions
|
@ -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 world’s 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"]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue