From 9d9bce9caa5871ea4a5b03f9d30f8aba95829f57 Mon Sep 17 00:00:00 2001 From: agatha Date: Tue, 9 Apr 2024 17:37:24 -0400 Subject: [PATCH] remove nginx --- frontend/Dockerfile | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 69be12b..4a80c35 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,8 +1,13 @@ -FROM nginx:stable-alpine - -COPY ./conf/nginx.conf /etc/nginx/nginx.conf +FROM node:alpine WORKDIR /app -COPY ./src/. . +COPY ./app/package.json /app/package.json +RUN npm install -EXPOSE 8000 \ No newline at end of file +COPY ./app /app +RUN npm run build + +RUN npm install -g serve + +EXPOSE 3000 +CMD ["serve", "-s", "--no-clipboard", "build"]