read configs from env

This commit is contained in:
h z
2024-12-05 13:39:08 +00:00
parent 3c53ef7a87
commit 8bae53d026
12 changed files with 80 additions and 62 deletions

View File

@@ -6,8 +6,11 @@ COPY package*.json ./
RUN npm install
COPY . .
COPY BuildConfig.sh /app/BuildConfig.sh
RUN chmod +x /app/BuildConfig.sh
RUN /app/BuildConfig.sh >&1
RUN npm run build
EXPOSE 3000
CMD ["npm", "start"]
CMD ["/bin/bash", "-c", "/app/BuildConfig.sh && npm start"]