Skip to content

Commit a6a3410

Browse files
committed
Standardize containers on WORKDIR /app
1 parent 273551c commit a6a3410

5 files changed

Lines changed: 5 additions & 0 deletions

File tree

builder/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ RUN chown -R root:root /app
5151

5252
# define the execution environment
5353
VOLUME /var/lib/docker
54+
WORKDIR /app
5455
ENTRYPOINT ["/app/bin/entry"]
5556
CMD ["/app/bin/boot"]
5657
EXPOSE 22

cache/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ RUN apt-get install -yq redis-server
1111
ADD . /app
1212

1313
# define the execution environment
14+
WORKDIR /app
1415
CMD ["/app/bin/boot"]
1516
EXPOSE 6379

database/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ ADD . /app
1313

1414
# define the execution environment
1515
VOLUME ["/var/lib/postgresql"]
16+
WORKDIR /app
1617
CMD ["/app/bin/boot"]
1718
EXPOSE 5432

logger/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ RUN mkdir -p /var/log/deis
1515
ADD . /app
1616

1717
# prepare execution environment
18+
WORKDIR /app
1819
CMD ["/app/bin/boot"]
1920
EXPOSE 514

registry/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ VOLUME /data
3131
ADD . /app
3232

3333
# define the execution environment
34+
WORKDIR /app
3435
CMD ["/app/bin/boot"]
3536
EXPOSE 5000

0 commit comments

Comments
 (0)