diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8e9a1b2 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM alpine AS git + +RUN apk add -U git && \ + git clone https://github.com/Siot/PaWebControl.git + + +FROM node:11-alpine + +EXPOSE 8000 + +COPY --from=git /PaWebControl /app + +WORKDIR /app + +RUN npm install && \ + npm run build + +CMD ["run", "start"] +ENTRYPOINT ["npm"]