mirror of
https://github.com/i701/sarlink-portal.git
synced 2025-02-21 18:22:00 +00:00
prepare for docker env
This commit is contained in:
parent
f9cac92858
commit
fd4e147683
7
.build/dev/compose.yml
Normal file
7
.build/dev/compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
services:
|
||||
node:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: .build/dev/node.Dockerfile
|
||||
hostname: sarlink-portal
|
||||
image: git.shihaam.dev/sarlink/sarlink-portal
|
7
.build/dev/node.Dockerfile
Normal file
7
.build/dev/node.Dockerfile
Normal file
@ -0,0 +1,7 @@
|
||||
FROM node:18
|
||||
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
WORKDIR /var/www/html
|
||||
|
||||
CMD npm run dev
|
13
.build/prod/Dockerfile
Normal file
13
.build/prod/Dockerfile
Normal file
@ -0,0 +1,13 @@
|
||||
FROM node:18
|
||||
|
||||
# Use bash as the default shell
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
|
||||
ENV NODE_ENV=production
|
||||
|
||||
WORKDIR /var/www/html
|
||||
COPY .. /var/www/html
|
||||
|
||||
RUN yarn install && yarn build
|
||||
|
||||
CMD yarn start
|
7
.build/prod/compose.yml
Normal file
7
.build/prod/compose.yml
Normal file
@ -0,0 +1,7 @@
|
||||
services:
|
||||
node:
|
||||
build:
|
||||
context: ../../
|
||||
dockerfile: .build/prod/Dockerfile
|
||||
hostname: sarlink-portal
|
||||
image: git.shihaam.dev/sarlink/sarlink-portal
|
Loading…
x
Reference in New Issue
Block a user