Follow Docker/K8s layout of other Initializr projects

This commit is contained in:
Chris Cheetham 2020-11-16 09:54:57 -05:00
Родитель be45f53b7f
Коммит 0668560b19
7 изменённых файлов: 11 добавлений и 13 удалений

1
.dockerignore Normal file
Просмотреть файл

@ -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