Use updated Containerfile
This commit is contained in:
parent
4d1a8f00a5
commit
81bc7ff07d
1 changed files with 17 additions and 3 deletions
|
@ -1,5 +1,19 @@
|
||||||
FROM docker.io/nginx:alpine
|
FROM docker.io/node:alpine as base
|
||||||
|
|
||||||
COPY ./dist /usr/share/nginx/html/oidc-test-web
|
ENV PNPM_HOME="/pnpm"
|
||||||
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
RUN corepack enable
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
|
FROM base as build-stage
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
COPY pnpm-lock.yaml .
|
||||||
|
RUN pnpm fetch --prod
|
||||||
|
COPY . .
|
||||||
|
RUN pnpm run build
|
||||||
|
|
||||||
|
FROM docker.io/library/nginx:alpine as production-stage
|
||||||
|
RUN mkdir /app
|
||||||
|
COPY --from=build-stage /app/dist /app
|
||||||
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue