21 lines
217 B
Docker
21 lines
217 B
Docker
FROM node:16
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
WORKDIR /app/frontend
|
|
|
|
RUN npm ci
|
|
|
|
RUN npm run build
|
|
|
|
WORKDIR /app
|
|
|
|
CMD [ "/bin/sh", "-c", "npm run ream && npm run start" ]
|