added reverse proxy
This commit is contained in:
parent
afd7fd7686
commit
246b1990ca
57 changed files with 4174 additions and 4139 deletions
46
Dockerfile
46
Dockerfile
|
|
@ -1,23 +1,23 @@
|
|||
# syntax=docker/dockerfile:1.7
|
||||
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
ENV NPM_CONFIG_AUDIT=false \
|
||||
NPM_CONFIG_FUND=false \
|
||||
NPM_CONFIG_PROGRESS=false
|
||||
COPY app/package*.json ./
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci --ignore-scripts --no-audit --no-fund
|
||||
COPY app/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production \
|
||||
NPM_CONFIG_AUDIT=false \
|
||||
NPM_CONFIG_FUND=false \
|
||||
NPM_CONFIG_PROGRESS=false
|
||||
COPY --from=build /app/build ./build
|
||||
COPY --from=build /app/package*.json ./
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci --omit=dev --ignore-scripts --no-audit --no-fund
|
||||
EXPOSE 3000
|
||||
CMD ["node", "build"]
|
||||
# syntax=docker/dockerfile:1.7
|
||||
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
ENV NPM_CONFIG_AUDIT=false \
|
||||
NPM_CONFIG_FUND=false \
|
||||
NPM_CONFIG_PROGRESS=false
|
||||
COPY app/package*.json ./
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci --ignore-scripts --no-audit --no-fund
|
||||
COPY app/ ./
|
||||
RUN npm run build
|
||||
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production \
|
||||
NPM_CONFIG_AUDIT=false \
|
||||
NPM_CONFIG_FUND=false \
|
||||
NPM_CONFIG_PROGRESS=false
|
||||
COPY --from=build /app/build ./build
|
||||
COPY --from=build /app/package*.json ./
|
||||
RUN --mount=type=cache,target=/root/.npm npm ci --omit=dev --ignore-scripts --no-audit --no-fund
|
||||
EXPOSE 3000
|
||||
CMD ["node", "build"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue