feat: dockerfile
This commit is contained in:
parent
c206f03313
commit
831b48cf9b
2 changed files with 48 additions and 0 deletions
28
.dockerignore
Normal file
28
.dockerignore
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
*.local
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
.idea
|
||||||
|
.DS_Store
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
|
|
||||||
|
web/
|
||||||
|
ka_data/
|
||||||
|
kuma-archive
|
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
FROM golang:1.24.1-alpine
|
||||||
|
|
||||||
|
WORKDIR /tmp/kuma-archive
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
RUN curl -fsSL https://bun.sh/install | sh
|
||||||
|
|
||||||
|
RUN bun install
|
||||||
|
RUN bun run package
|
||||||
|
|
||||||
|
WORKDIR /usr/local
|
||||||
|
RUN mv /tmp/kuma-archive/dist/generated/*.tar.gz /usr/local
|
||||||
|
RUN tar -zxvf kuma-archive*.tar.gz
|
||||||
|
RUN rm -rf kuma-archive*.tar.gz /tmp/kuma-archive
|
||||||
|
|
||||||
|
WORKDIR /usr/local/kuma-archive
|
||||||
|
|
||||||
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT [ "/usr/local/kuma-archive", "daemon" ]
|
Loading…
Reference in a new issue