tendry valdi
9 months ago
3 changed files with 52 additions and 0 deletions
@ -0,0 +1,25 @@ |
|||
FROM node:16.20 |
|||
|
|||
LABEL org.opencontainers.image.authors="tendry@blastream.com" |
|||
|
|||
#RUN echo "deb http://archive.debian.org/debian stretch main" > /etc/apt/sources.lis |
|||
|
|||
#RUN apt-get update |
|||
|
|||
#RUN apt-get install -y nano |
|||
|
|||
RUN mkdir -p /home/node/app/node_modules |
|||
|
|||
WORKDIR /home/node/app |
|||
|
|||
COPY package*.json ./ |
|||
|
|||
RUN npm install |
|||
RUN npm install nodemon --save-dev |
|||
|
|||
COPY . . |
|||
#COPY .env . |
|||
|
|||
EXPOSE 3100 |
|||
|
|||
CMD [ "npm", "run", "dev" ] |
@ -0,0 +1,16 @@ |
|||
# Quick guide with Docker-Compose |
|||
|
|||
## required |
|||
- ubuntu 20(+) |
|||
- docker |
|||
- docker-compose |
|||
|
|||
## Preparation |
|||
> clone |
|||
- clone project: git clone https://gitea.invaders.stream/onja/bodacc.git |
|||
|
|||
## start |
|||
docker-compose up -d |
|||
|
|||
## Test |
|||
http://IP:3100/ |
@ -0,0 +1,11 @@ |
|||
version: "3" |
|||
services: |
|||
bodacc: |
|||
build: |
|||
context: ./ |
|||
image: bodacc |
|||
container_name: bodacc |
|||
#volumes: |
|||
# - ./.env:/home/node/app/.env |
|||
ports: |
|||
- 3100:3100 |
Loading…
Reference in new issue