turtle-wow-source-kinda/Dumps/Source Code/20 - Development_turtle-logs/main/Webclient/Dockerfile
Brian Oost a1d5bb70b2 Init
2024-08-06 18:06:40 +02:00

29 lines
895 B
Docker

FROM nginx:1.23
RUN apt update && apt install -y npm unzip
RUN mkdir /Webclient
COPY ./src /Webclient/src
COPY ./tools /Webclient/tools
COPY ./.browserslistrc /Webclient/.browserslistrc
COPY ./.editorconfig /Webclient/.editorconfig
COPY ./angular.json /Webclient/angular.json
COPY ./proxy.conf.json /Webclient/proxy.conf.json
COPY ./configuration.sh /Webclient/configuration.sh
COPY ./package.json /Webclient/package.json
COPY ./package-lock.json /Webclient/package-lock.json
COPY ./tsconfig.json /Webclient/tsconfig.json
COPY ./tsconfig.app.json /Webclient/tsconfig.app.json
COPY ./tsconfig.spec.json /Webclient/tsconfig.spec.json
COPY ./tsconfig.worker.json /Webclient/tsconfig.worker.json
COPY ./tslint.json /Webclient/tslint.json
WORKDIR /Webclient
RUN npm ci
RUN npm run build
RUN mkdir -p /var/www
RUN cp -r dist/Webclient/* /var/www/
COPY ./nginx.conf /etc/nginx/conf.d/default.conf