read configs from env
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user