diff --git a/dockerfiles/front/DockerFile b/dockerfiles/front/DockerFile deleted file mode 100644 index e69de29..0000000 diff --git a/dockerfiles/front/Dockerfile b/dockerfiles/front/Dockerfile new file mode 100644 index 0000000..9e9b705 --- /dev/null +++ b/dockerfiles/front/Dockerfile @@ -0,0 +1,23 @@ +FROM node:20 AS build + +WORKDIR /app + + +COPY doodlestudent/front . + +RUN npm install + +RUN npx ng build + + +FROM nginx:alpine + +COPY --from=build /app/dist/tlcfront /usr/share/nginx/html + +EXPOSE 80 + +CMD ["nginx", "-g", "daemon off;"] + + +#docker build -f dockerfiles/front/Dockerfile -t front_image . +#docker run --rm -p8080:80 front_image \ No newline at end of file