mirror of
https://github.com/SantaSpeen/santaspeen.ru-blog.git
synced 2026-05-20 00:20:28 +00:00
add dockerfile
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
FROM node:latest as builder
|
||||
|
||||
COPY . /src
|
||||
WORKDIR /src
|
||||
|
||||
RUN npm install
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx:1.24.0-alpine
|
||||
WORKDIR /srv/www/
|
||||
|
||||
COPY nginx.conf /etc/nginx/
|
||||
COPY --from=builder /src/build .
|
||||
RUN chown -R nginx:nginx /srv/www
|
||||
|
||||
EXPOSE 8000
|
||||
Reference in New Issue
Block a user