fix: Use PORT environment variable (default 80) for Easypanel
This commit is contained in:
@@ -15,8 +15,8 @@ COPY . .
|
|||||||
# Build Astro project (includes public folder in dist)
|
# Build Astro project (includes public folder in dist)
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Expose port
|
# Expose port from environment variable (default 80 for Easypanel)
|
||||||
EXPOSE 4321
|
EXPOSE ${PORT:-80}
|
||||||
|
|
||||||
# Start Astro preview server
|
# Start Astro preview server on the correct port
|
||||||
CMD ["npm", "run", "preview", "--", "--host", "0.0.0.0", "--port", "4321"]
|
CMD ["sh", "-c", "npm run preview -- --host 0.0.0.0 --port ${PORT:-80}"]
|
||||||
|
|||||||
Reference in New Issue
Block a user