Files
blog/Dockerfile
tymur999 8976f4f9d8
All checks were successful
/ image_build (push) Successful in 1m53s
Dockerfile updated to spa
2026-03-17 14:59:03 -04:00

21 lines
658 B
Docker

FROM node:latest AS build
WORKDIR /blog
COPY package.json /blog/
RUN npm install
COPY . /blog/
RUN npm run build
FROM docker.io/nginx:trixie
RUN useradd tymur999 -u 3000
RUN chown tymur999:tymur999 -R /etc/logrotate.d/nginx \
/etc/nginx \
/etc/init.d/nginx \
/usr/lib/nginx \
/usr/share/nginx \
/var/cache/nginx \
/var/log/nginx
USER tymur999:tymur999
COPY --from=build --chown=tymur999:tymur999 /blog/build/ /var/www/html/
COPY --link nginx.conf /etc/nginx/
EXPOSE 8000