minimal website rewrite

This commit is contained in:
Nicholas Orlowsky 2023-07-30 18:11:02 -05:00
parent 10b2cc429c
commit a3bc0de320
No known key found for this signature in database
GPG key ID: 24C84C4DDAD95065
110 changed files with 1117 additions and 56040 deletions

View file

@ -1,18 +1,9 @@
# build environment
FROM node:13.12.0-alpine as build
WORKDIR /app
ENV PATH /app/node_modules/.bin:$PATH
COPY package.json ./
COPY package-lock.json ./
RUN npm install
FROM nginx:alpine
RUN npm install react-scripts@3.4.1 -g --silent
COPY . ./
RUN npm run build
WORKDIR /site
# production environment
FROM nginx:stable-alpine
COPY --from=build /app/build /usr/share/nginx/html
COPY --from=build /app/nginx/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
COPY . .
RUN ls
RUN /bin/sh compile.sh
RUN cp -r ./out/* /usr/share/nginx/html