Update Dockerfile and nginx.conf for Dokploy deployment

This commit is contained in:
2026-05-26 09:54:30 +05:30
parent 5f96023b4a
commit a0ca74cb18
2 changed files with 36 additions and 0 deletions

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
FROM nginx:alpine
# Move to Nginx's public folder
WORKDIR /usr/share/nginx/html
# 1. CRUCIAL: Remove Nginx's default "Welcome" page files completely
RUN rm -rf ./*
# 2. Copy your compiled static assets into the root folder.
# NOTE: If your folder is named "dist" instead of "build", change "build/" to "dist/"
COPY build/ .
# 3. Copy your custom Nginx configuration (which you already have in your log)
COPY nginx.conf /etc/nginx/nginx.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]