AAAAAAAAAAAAGH

This commit is contained in:
Aquaticholic
2022-02-02 05:37:10 +00:00
parent 285eeb11d4
commit 54b3353a0b
33 changed files with 675 additions and 420 deletions
+8 -4
View File
@@ -1,9 +1,12 @@
FROM node:16-alpine as build-step
RUN mkdir /app/
RUN mkdir /app/node_modules
RUN chown -R node:node /app/node_modules
#RUN mkdir /app/node_module/.bin
WORKDIR /app/
ENV PATH /app/node_modules/.bin:$PATH
RUN chown -R node:node /app/node_modules
COPY package*.json ./
COPY package.json ./
COPY package-lock.json ./
RUN npm install
COPY . ./
# USER node
@@ -12,6 +15,7 @@ RUN npm run build
FROM nginx:1-alpine
COPY --from=build-step /app/build /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf
COPY nginx/nginx.conf /etc/nginx/conf.d
EXPOSE 80
# COPY nginx/nginx.conf /etc/nginx/conf.d
EXPOSE 8080
# EXPOSE 443
CMD ["nginx", "-g", "daemon off;"]