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"]