mirror of
https://github.com/SantaSpeen/santaspeen.ru-blog.git
synced 2026-10-28 07:00:05 +00:00
add dockerfile
This commit is contained in:
1 parent
7fbd34be90
commit
b533e9ae56
2 files changed
+132
No files matched your search
+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