Envrionment support infrastructure

This commit is contained in:
Olusesan Ameye
2025-08-27 03:00:35 +00:00
parent baf96da5eb
commit e9d30d6169
5 changed files with 188 additions and 15 deletions
+17 -1
View File
@@ -3,8 +3,22 @@
# FROM node:alpine
FROM node:22-alpine
# Build args
ARG NODE_ENV
ENV NODE_VERSION 14.19.0
ENV NODE_ENV=$NODE_ENV
# install nginx
RUN apk update
RUN apk add nginx
WORKDIR /app
COPY nginx.conf ./
COPY run.sh ./
COPY package.json .
RUN npm install
@@ -15,5 +29,7 @@ COPY . .
# CMD [ "npm", "run", "preview" ]
CMD [ "npm", "run", "start" ,"--", "--host"]
##CMD [ "npm", "run", "start" ,"--", "--host"]
CMD /bin/sh ./run.sh