Skip to content

Commit ad8f6fb

Browse files
committed
Some clean up of the Docker procedures.
1 parent 3560348 commit ad8f6fb

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM node:16.10.0
22

3-
RUN npm install -g [email protected].2
4-
RUN npm i -g jest-cli
3+
RUN npm install -g [email protected].3
4+
RUN npm i -g jest-cli@27.3.1
55

66
RUN mkdir /srv/app && chown node:node /srv/app
77

docker-build.sh

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker compose build

docker-compose.yml

-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ services:
44
app:
55
image: abcjs
66
build: .
7-
environment:
8-
- "CMD=${CMD}"
97
container_name: abcjs
10-
command: npm ${CMD}
118
volumes:
129
- .:/srv/app
1310
- ./node_modules:/srv/app/node_modules

docker-start.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docker run -v $(pwd):/srv/app -p $abcjs_docs:8080 -it abcjs /bin/bash
1+
docker compose run --publish $abcjs_docs:8080 --rm --name=abcjs app bash

0 commit comments

Comments
 (0)