fix tests, remove webapp from terraform

This commit is contained in:
41666 2021-03-09 23:57:49 -05:00
parent 8d06327c03
commit 0b54321cfe
11 changed files with 1017 additions and 313 deletions

View file

@ -1,24 +0,0 @@
#
# Builder
#
FROM mhart/alpine-node:14 AS builder
WORKDIR /src
COPY package.json yarn.lock ./
RUN yarn install --frozen-lockfile --ignore-scripts
COPY tsconfig.json .babelrc.js next.config.js next-env.d.ts ./
COPY src src
RUN yarn ui:build
RUN yarn install --frozen-lockfile --prod --ignore-scripts
#
# Output layer
#
FROM mhart/alpine-node:slim-14 AS output
COPY --from=builder /src .
ENV PORT=6601
ENTRYPOINT [ "/bin/sh", "-c", "/usr/bin/node node_modules/.bin/next start -p $PORT" ]