feat: добавил .dockerignore и обновил Dockerfile для улучшения сборки
Frontend CI / build-and-check (push) Failing after 20s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 4s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 4s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 22s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 3s
Frontend CI / build-and-check (push) Failing after 20s
🚀 Create and publish a Docker image / Detect changes in backend and frontend (push) Successful in 4s
🚀 Create and publish a Docker image / Build & publish backend image (push) Successful in 4s
🚀 Create and publish a Docker image / Build & publish frontend image (push) Successful in 22s
🚀 Create and publish a Docker image / Update stack on Portainer (push) Successful in 3s
This commit is contained in:
1 parent
11f8dc554b
commit
4d51a9af1d
2 files changed
+8
-4
No files matched your search
@@ -0,0 +1,3 @@
|
|||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
test-results
|
||||||
+5
-4
@@ -4,15 +4,16 @@ ENV PNPM_HOME="/pnpm"
|
|||||||
ENV PATH="$PNPM_HOME:$PATH"
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
RUN corepack enable
|
RUN corepack enable
|
||||||
|
|
||||||
FROM base AS prod
|
FROM base AS build
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY pnpm-lock.yaml ./
|
COPY pnpm-lock.yaml ./
|
||||||
RUN pnpm fetch --prod
|
RUN pnpm fetch
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
RUN pnpm install --offline --frozen-lockfile
|
||||||
RUN pnpm run build
|
RUN pnpm run build
|
||||||
|
|
||||||
FROM nginx:1.30-alpine
|
FROM nginx:1.31-alpine
|
||||||
COPY --from=prod /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist /usr/share/nginx/html
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
Reference in new issue
Block a user