react-express-mysql: use create-react-app template
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user