mirror of
https://github.com/wahyd4/kt-connect.git
synced 2026-08-10 22:05:57 +10:00
14 lines
347 B
Docker
14 lines
347 B
Docker
FROM node:9.11.1 as build-deps
|
|
WORKDIR /usr/src/app
|
|
COPY package.json ./
|
|
RUN npm install -g cnpm
|
|
RUN cnpm install
|
|
COPY . ./
|
|
RUN cnpm run build
|
|
|
|
FROM nginx:1.15
|
|
ENV APP_ENV PROD
|
|
COPY --from=build-deps /usr/src/app/build /usr/share/nginx/html
|
|
ADD config/nginx/default.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|
|
CMD ["nginx", "-g", "daemon off;"] |