Kamal
This commit is contained in:
parent
a39a50f357
commit
1ac0ea5f1c
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
cache/
|
cache/
|
||||||
dist/
|
dist/
|
||||||
|
.kamal/secrets
|
||||||
|
20
config/deploy.yml
Normal file
20
config/deploy.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
service: hpg
|
||||||
|
image: images/hpg.romein.me
|
||||||
|
|
||||||
|
servers:
|
||||||
|
web: [91.99.31.93]
|
||||||
|
|
||||||
|
proxy:
|
||||||
|
host: 'hpg.romein.me'
|
||||||
|
app_port: 80
|
||||||
|
healthcheck:
|
||||||
|
path: '/'
|
||||||
|
|
||||||
|
registry:
|
||||||
|
server: code.smartyellow.net
|
||||||
|
username: romein
|
||||||
|
password: [KAMAL_REGISTRY_PASSWORD]
|
||||||
|
|
||||||
|
builder:
|
||||||
|
arch: amd64
|
||||||
|
remote: ssh://root@91.99.31.93
|
13
dockerfile
Normal file
13
dockerfile
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
FROM node:16-alpine AS build
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
COPY . .
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||||
|
WORKDIR /usr/share/nginx/html
|
||||||
|
COPY --from=build /app/content/.vitepress/dist .
|
||||||
|
|
||||||
|
ENTRYPOINT ["nginx", "-g", "daemon off;"]
|
Loading…
x
Reference in New Issue
Block a user