Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[YUNIKORN-2799] Solve dockerfile warning which emerged while building #201

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

ARG NODE_VERSION
ARG NODE_VERSION=20
# Buildstage: use the local architecture
FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-alpine as buildstage
FROM --platform=$BUILDPLATFORM node:${NODE_VERSION}-alpine AS buildstage

WORKDIR /work
# Only copy what is needed for the build
Expand All @@ -29,10 +29,10 @@ RUN PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 pnpm i
RUN pnpm build:prod

# Imagestage: use scratch base image
FROM --platform=$TARGETPLATFORM scratch
FROM scratch
COPY --chown=0:0 NOTICE LICENSE build/prod/yunikorn-web /
COPY --chown=0:0 --from=buildstage /work/dist/yunikorn-web /html/
EXPOSE 9889
ENV DOCUMENT_ROOT /html
ENV DOCUMENT_ROOT=/html
USER 4444:4444
ENTRYPOINT [ "/yunikorn-web" ]