You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
315 B
21 lines
315 B
FROM node:14.7 AS build-stage
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json package-lock.json /app/
|
|
RUN npm install
|
|
RUN npm install apexcharts echarts
|
|
|
|
COPY . /app
|
|
|
|
RUN npm run build
|
|
|
|
|
|
FROM jonasal/nginx-certbot:2.4
|
|
WORKDIR /var/tmp/www/treetalker/build/
|
|
|
|
# muti-stage build
|
|
COPY --from=build-stage /app/build ./
|
|
|
|
EXPOSE 80 443
|