From 58448dbdf2d1af60781f087da6d75e3cd1a2bcc1 Mon Sep 17 00:00:00 2001 From: gimse <23360355+gimse@users.noreply.github.com> Date: Thu, 9 Nov 2023 20:07:04 +0100 Subject: [PATCH] setting EXPOSE 8080 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index af636c1..35e0b23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,9 +7,6 @@ MAINTAINER tanwenyang@aliyun.com # Copy the vue-color-avatar file from the local directory to the /app directory inside the container COPY . /app -# Expose port 5173 of the container and allow external access to this port -EXPOSE 5173 - # Change the working directory to /app WORKDIR /app @@ -22,5 +19,8 @@ RUN yarn build # Using nginx for production FROM docker.io/nginxinc/nginx-unprivileged:1.25.1-alpine +# Showing that port 8080 can be published +EXPOSE 8080 + # Copy html from previous stage COPY --from=builder /app/dist /usr/share/nginx/html