configuration update
This commit is contained in:
+11
-2
@@ -92,6 +92,15 @@ RUN apk add --no-cache --virtual .build-deps-yarn curl gnupg tar \
|
|||||||
# smoke test
|
# smoke test
|
||||||
&& yarn --version
|
&& yarn --version
|
||||||
|
|
||||||
|
|
||||||
|
# set working directory
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
# install app dependencies
|
||||||
|
COPY package.json ./
|
||||||
|
#COPY package-lock.json ./
|
||||||
|
RUN npm install --silent
|
||||||
|
|
||||||
#COPY docker-entrypoint.sh /usr/local/bin/
|
#COPY docker-entrypoint.sh /usr/local/bin/
|
||||||
#ENTRYPOINT ["docker-entrypoint.sh"]
|
#ENTRYPOINT ["docker-entrypoint.sh"]
|
||||||
RUN npm install react-router-dom --save
|
RUN npm install react-router-dom --save
|
||||||
@@ -103,11 +112,11 @@ COPY . ./
|
|||||||
|
|
||||||
#CMD ["npm","run", "build"]
|
#CMD ["npm","run", "build"]
|
||||||
|
|
||||||
CMD ["npm","run", "start"]
|
# CMD ["npm","run", "start"] yes
|
||||||
|
|
||||||
#CMD ["npm","run", "start"]
|
#CMD ["npm","run", "start"]
|
||||||
|
|
||||||
#CMD ["npm","run", "dev"]
|
CMD ["npm","run", "dev"]
|
||||||
#COPY --from=build-target /usr/src/app/node_modules node_modules
|
#COPY --from=build-target /usr/src/app/node_modules node_modules
|
||||||
#COPY --from=build-target /usr/src/app/.next .next
|
#COPY --from=build-target /usr/src/app/.next .next
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,15 @@ module.exports = {
|
|||||||
locales: ['en', 'ar'],
|
locales: ['en', 'ar'],
|
||||||
defaultLocale: 'en',
|
defaultLocale: 'en',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
webpackDevMiddleware: config => {
|
||||||
|
config.watchOptions = {
|
||||||
|
poll: 1000,
|
||||||
|
aggregateTimeout: 300,
|
||||||
|
}
|
||||||
|
return config
|
||||||
|
},
|
||||||
|
|
||||||
env: {
|
env: {
|
||||||
REACT_APP_US_ADDRESS_USA: '32 Oatgrass Dr, Grayson,GA,30017',
|
REACT_APP_US_ADDRESS_USA: '32 Oatgrass Dr, Grayson,GA,30017',
|
||||||
REACT_APP_US_PHONE: '(415) 251-7583',
|
REACT_APP_US_PHONE: '(415) 251-7583',
|
||||||
|
|||||||
Generated
+867
-3537
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user