Skip to content

Commit

Permalink
[FIX] bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ismoilovdevml committed Oct 17, 2024
1 parent dd21f9b commit ee6aaee
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 35 deletions.
41 changes: 8 additions & 33 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,44 +1,19 @@

FROM node:18.20.4-alpine as base

ARG PORT=3000

EXPOSE ${PORT}
FROM node:16-alpine AS build

WORKDIR /app

COPY package*.json ./
RUN npm install --legacy-peer-deps

FROM base as dependencies

COPY package-lock.json /app/

RUN echo "Installing dependencies" \
apk --update --no-cache add --virtual build-dependencies make g++ && \
npm install --silent --production

FROM dependencies as develop

ENV NODE_ENV=development

RUN npm install --silent

COPY ./ /app

COPY . .
RUN npm run build

FROM base as release
FROM node:16-alpine

ENV NODE_ENV=production

COPY --from=dependencies /app/node_modules /app/node_modules
COPY --from=develop /app/build /app/build

RUN adduser -D -h /app -u 5000 user && \
chown -R user:user /app
WORKDIR /app

USER user
COPY --from=build /app ./

ENTRYPOINT ["npm", "run"]
EXPOSE 3000

CMD ["start"]
CMD ["npm", "start"]
2 changes: 1 addition & 1 deletion pages/guides/ci-cd/gitlab-server.en-UZ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ shutdown_timeout = 0
Gitlab runner serverdagi dockerdan foydalanishi uchun uchun unga accses beramiz.

```bash
sudo usermod -aG docker gitlab-runne
sudo usermod -aG docker gitlab-runner
```
Gitlab runnerga restart beramiz.

Expand Down
2 changes: 1 addition & 1 deletion pages/guides/k8s/k8s-kirish.en-UZ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Callout } from "nextra-theme-docs";

![k8s](https://raw.githubusercontent.com/devops-journey-uz/assets/main/images/tutorials/k8s/kirish/banner.png)

Kubernetes konteynerlashtirilgan workloadlari va servicelarni boshqarish uchun portativ, kengaytiriladigan, open source platforma bo'lib, deklarativ konfiguratsiya va avtomatlashtirishni osonlashtiradi. U katta, tez rivojlanayotgan ekotizimga ega. Kubernetes servicelari, supporti va tollari keng tarqalgan.
Kubernetes konteynerlashtirilgan workloadlari va servicelarni boshqarish uchun portativ, kengaytiriladigan, open source platforma bo'lib, deklarativ konfiguratsiya va avtomatlashtirishni osonlashtiradi. U katta, tez rivojlanayotgan ekotizimga ega. Kubernetes servicelari, supporti va toollari keng tarqalgan.

Kubernetes nomi yunon tilidan kelib chiqqan bo'lib, boshqaruvchi(helmsman) yoki uchuvchi(pilot) degan ma'noni anglatadi. K8s qisqartma sifatida `K` va `s` o'rtasidagi sakkizta harfni hisoblash natijasida paydo bo'ladi. Google Kubernetes loyihasini 2014-yilda ochiq manbalar asosida yaratdi. Kubernetes Googlening 15 yildan ortiq ishlab chiqarish workloadlarini boshqarish tajribasini hamjamiyatning eng ilg'or g'oyalari va amaliyotlari bilan birlashtiradi.

Expand Down

0 comments on commit ee6aaee

Please sign in to comment.