|
|
|
@ -10,16 +10,6 @@ COPY apps/quotes .
|
|
|
|
|
|
|
|
|
|
RUN $(npm bin)/ng build --prod --build-optimizer --output-hashing=none
|
|
|
|
|
|
|
|
|
|
WORKDIR /build-comments
|
|
|
|
|
COPY apps/comments/package.json apps/comments/package-lock.json ./
|
|
|
|
|
|
|
|
|
|
RUN npm install && mkdir /comments && cp -r node_modules/ /comments
|
|
|
|
|
|
|
|
|
|
WORKDIR /comments
|
|
|
|
|
COPY apps/comments .
|
|
|
|
|
|
|
|
|
|
RUN $(npm bin)/ng build --prod --build-optimizer --output-hashing=none
|
|
|
|
|
|
|
|
|
|
WORKDIR /build-schedule
|
|
|
|
|
COPY apps/schedule/package.json apps/schedule/package-lock.json ./
|
|
|
|
|
|
|
|
|
@ -30,13 +20,23 @@ COPY apps/schedule .
|
|
|
|
|
|
|
|
|
|
RUN $(npm bin)/ng build --prod --build-optimizer --output-hashing=none
|
|
|
|
|
|
|
|
|
|
WORKDIR /build-twitch-logs
|
|
|
|
|
COPY apps/twitch-logs/package.json apps/twitch-logs/package-lock.json ./
|
|
|
|
|
|
|
|
|
|
RUN npm install && mkdir /twitch-logs && cp -r node_modules/ /twitch-logs
|
|
|
|
|
|
|
|
|
|
WORKDIR /twitch-logs
|
|
|
|
|
COPY apps/twitch-logs .
|
|
|
|
|
|
|
|
|
|
RUN $(npm bin)/ng build --prod --build-optimizer --output-hashing=none
|
|
|
|
|
|
|
|
|
|
FROM nginx:alpine
|
|
|
|
|
|
|
|
|
|
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
|
|
|
|
|
|
|
|
|
COPY --from=builder /quotes/dist /quotes/quotes/assets
|
|
|
|
|
COPY --from=builder /comments/dist /comments/comments/assets
|
|
|
|
|
COPY --from=builder /schedule/dist /schedule/schedule/assets
|
|
|
|
|
COPY --from=builder /twitch-logs/dist /twitch-logs/twitch-logs/assets
|
|
|
|
|
|
|
|
|
|
RUN addgroup -g 9999 lilia
|
|
|
|
|
|
|
|
|
|