mirror of
https://gitlab.com/sarlink/kyc.git
synced 2025-02-22 09:02:17 +00:00
add docker build stuff
This commit is contained in:
parent
ff23ec0161
commit
bb3eb5c709
17
.build/docker-compose.yml
Normal file
17
.build/docker-compose.yml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
version: '3.5'
|
||||||
|
services:
|
||||||
|
|
||||||
|
node:
|
||||||
|
build:
|
||||||
|
context: ../
|
||||||
|
dockerfile: .build/node.Dockerfile
|
||||||
|
x-bake:
|
||||||
|
pull: true
|
||||||
|
platforms:
|
||||||
|
# - linux/amd64/v1
|
||||||
|
- linux/amd64/v2
|
||||||
|
# - linux/amd64/v3
|
||||||
|
# - linux/arm/v7
|
||||||
|
- linux/arm64
|
||||||
|
hostname: node
|
||||||
|
image: registry.gitlab.com/sarlink/kyc
|
9
.build/node.Dockerfile
Normal file
9
.build/node.Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM node:18.18-buster AS npminstall
|
||||||
|
|
||||||
|
WORKDIR /var/www/html
|
||||||
|
COPY . /var/www/html
|
||||||
|
|
||||||
|
RUN --mount=type=cache,target=/root/.npm \
|
||||||
|
npm install
|
||||||
|
|
||||||
|
CMD npm run start
|
10
compose.yml
Normal file
10
compose.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
version: '3.5'
|
||||||
|
services:
|
||||||
|
|
||||||
|
node:
|
||||||
|
hostname: node
|
||||||
|
image: registry.gitlab.com/sarlink/kyc
|
||||||
|
env_file:
|
||||||
|
- .env
|
||||||
|
ports:
|
||||||
|
- 4818:4818
|
Loading…
x
Reference in New Issue
Block a user