Skip to content

Commit 7bc84a1

Browse files
committed
Changing user home directory in the container.
1 parent 6604f35 commit 7bc84a1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/.composer/
21
/ci/infection/
32
/ci/phpunit/
43
/ci/psalm/
@@ -17,6 +16,5 @@
1716
/var/cache/
1817
/vendor/
1918
/.ashrc
20-
/.ash_history
2119
/.env
2220
/docker-compose.override.yml

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ COPY --from=composer /usr/bin/composer /usr/bin/composer
1414
# Ajout de l'utilisateur :
1515
ARG uid
1616
ARG user
17-
RUN adduser -g "" -D -h "/var/www/" -u "$uid" "$user"
17+
RUN adduser -g "" -D -u "$uid" "$user"

docker-compose.override.yml.dist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
services:
22
app:
33
environment:
4-
- ENV=/var/www/.ashrc
4+
- ENV=/home/${user}/.ashrc
5+
volumes:
6+
- ./.ashrc:/home/${user}/.ashrc

0 commit comments

Comments
 (0)