move template to ./template;

setup django middleware;
setup angular frontend;
wire django and angular together;
This commit is contained in:
Marco Zeisler
2020-11-17 19:34:25 +01:00
parent 044a096f54
commit ff4b3508d8
97 changed files with 13737 additions and 6080 deletions
+16 -8
View File
@@ -1,9 +1,17 @@
FROM node:12.11.1-alpine AS build
ENV NODE_ENV production
WORKDIR /usr/src/app
RUN npm config set -g production false
COPY ["package.json", "package-lock.json*", "npm-shrinkwrap.json*", "./"]
RUN npm install
# Stage 1
FROM node:alpine AS build-image
WORKDIR /app
COPY . .
EXPOSE 8000
CMD ["npm", "run", "serve"]
RUN npm ci && npm run build
# Stage 2
FROM nginx:alpine
COPY --from=build-image /app/dist/app-fe /usr/share/nginx/html
EXPOSE 80