diff --git a/Dockerfile b/Dockerfile index 595a942..ea9eeee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,15 @@ RUN yarn install COPY . . RUN yarn build -FROM nginx:stable-alpine - -COPY --from=build /app/dist /usr/share/nginx/html +RUN npm install -g serve EXPOSE 80 - -CMD ["nginx", "-g", "daemon off;"] +CMD ["serve", "-s /app/dist", "-l 80"] +# +#FROM nginx:stable-alpine +# +#COPY --from=build /app/dist /usr/share/nginx/html +# +#EXPOSE 80 +# +#CMD ["nginx", "-g", "daemon off;"]