Add Dockerfile for Easypanel deployment
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM node:20-alpine AS builder
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
FROM node:20-alpine
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci --only=production
|
||||
COPY --from=builder /app/dist ./dist
|
||||
RUN apk add --no-cache sqlite-libs
|
||||
EXPOSE 80
|
||||
ENV NODE_ENV=production HOST=0.0.0.0 PORT=80
|
||||
CMD ["npx", "astro", "preview", "--host", "0.0.0.0", "--port", "80"]
|
||||
Reference in New Issue
Block a user