feat: deploy on Caprover directly
parent
751954d0ac
commit
5df925dffe
@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
public
|
@ -0,0 +1,21 @@
|
||||
FROM node:20 as builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install -g pnpm@8
|
||||
COPY . .
|
||||
RUN pnpm install && pnpm build
|
||||
|
||||
|
||||
# See https://lipanski.com/posts/smallest-docker-image-static-website
|
||||
FROM busybox:1.36
|
||||
|
||||
RUN adduser -D static
|
||||
USER static
|
||||
WORKDIR /home/static
|
||||
|
||||
COPY --from=builder /app/public .
|
||||
|
||||
# Run BusyBox httpd
|
||||
EXPOSE 3000
|
||||
CMD ["busybox", "httpd", "-f", "-v", "-p", "3000"]
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"schemaVersion": 2,
|
||||
"dockerfilePath": "./Dockerfile"
|
||||
}
|
Loading…
Reference in New Issue