frequi_origin/Dockerfile
dependabot[bot] 24c2baa32c
chore(deps): bump nginx from 1.27.0-alpine to 1.27.2-alpine
Bumps nginx from 1.27.0-alpine to 1.27.2-alpine.

---
updated-dependencies:
- dependency-name: nginx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-04 03:47:22 +00:00

23 lines
440 B
Docker

FROM node:22.9.0-alpine as ui-builder
RUN mkdir /app \
&& corepack enable
WORKDIR /app
COPY package.json pnpm-lock.yaml /app/
RUN apk add --update --no-cache g++ make git \
&& pnpm install --frozen-lockfile \
&& apk del g++ make
COPY . /app
RUN pnpm run build
FROM nginx:1.27.2-alpine
COPY --from=ui-builder /app/dist /etc/nginx/html
COPY --from=ui-builder /app/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx"]