Follow Docker/K8s layout of other Initializr projects
This commit is contained in:
Родитель
be45f53b7f
Коммит
0668560b19
|
@ -0,0 +1 @@
|
|||
start-client/node_modules
|
|
@ -1,15 +1,15 @@
|
|||
FROM node:10 AS build
|
||||
WORKDIR /usr/src
|
||||
COPY package.json ./
|
||||
COPY yarn.lock ./
|
||||
COPY setupJest.js ./
|
||||
COPY .babelrc ./
|
||||
COPY src/ ./src/
|
||||
COPY dev/ ./dev/
|
||||
COPY static/ ./static/
|
||||
COPY webpack.common.js ./
|
||||
COPY webpack.prod.js ./
|
||||
COPY webpack.dev.js ./
|
||||
COPY start-client/package.json ./
|
||||
COPY start-client/yarn.lock ./
|
||||
COPY start-client/setupJest.js ./
|
||||
COPY start-client/.babelrc ./
|
||||
COPY start-client/src/ ./src/
|
||||
COPY start-client/dev/ ./dev/
|
||||
COPY start-client/static/ ./static/
|
||||
COPY start-client/webpack.common.js ./
|
||||
COPY start-client/webpack.prod.js ./
|
||||
COPY start-client/webpack.dev.js ./
|
||||
RUN yarn install
|
||||
RUN yarn build
|
||||
|
||||
|
@ -19,5 +19,3 @@ RUN chown -R app:app usr/share/initializr/www
|
|||
RUN rm /etc/nginx/sites-enabled/default
|
||||
RUN rm -f /etc/service/nginx/down
|
||||
COPY deploy/docker/initializr-web.conf /etc/nginx/sites-enabled/
|
||||
|
||||
|
|
@ -1 +0,0 @@
|
|||
node_modules
|
Загрузка…
Ссылка в новой задаче