react-express-mysql: use create-react-app template

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
Jérémie Drouet
2020-03-23 13:24:37 +01:00
parent bf31ad4ece
commit b58a42015d
53 changed files with 15541 additions and 1127 deletions

View File

@@ -1,9 +1,20 @@
FROM node:10
FROM node:lts AS development
RUN mkdir /project
WORKDIR /project
ENV CI=true
ENV PORT=3000
COPY . .
WORKDIR /code
COPY package.json /code/package.json
COPY package-lock.json /code/package-lock.json
RUN npm ci
COPY . /code
RUN yarn install
CMD ["yarn", "run", "start"]
CMD [ "npm", "start" ]
FROM development AS builder
RUN npm run build
FROM nginx:1.13-alpine
COPY --from=builder /code/build /usr/share/nginx/html