Skip to content

Commit ed11653

Browse files
committed
Refactoring container.
1 parent 98b7f5b commit ed11653

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

.ashrc.dist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
alias ls='ls --color=auto -h --group-directories-first'
2+
alias ll='ls -l'
3+
alias la='ll -a'
4+
5+
alias cdtoproject='cd /home/node/codingame/'

.env.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
gid=1000
2+
uid=1000

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
/.npm/
21
/ci/c8/
3-
/ci/cache/
42
/node_modules/
53
/lib/**/*.js
64
/test/**/*.js
7-
!/test/**/CGTest.js
85
!/test/File.js
96
!/test/assertOutputAnswer.js
7+
/.ashrc
8+
/.env
9+
/docker-compose.override.yml

docker-compose.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
services:
22
app:
3+
environment:
4+
- ENV=/home/node/codingame/.ashrc
35
image: node:21-alpine
6+
user: ${uid}:${gid}
47
volumes:
5-
- ./:/var/codingame/
6-
- ./.npm/:/root/.npm/
7-
working_dir: /var/codingame/
8+
- ./:/home/node/codingame/
9+
working_dir: /home/node/codingame/

0 commit comments

Comments
 (0)