Skip to content

Commit 5d14c23

Browse files
author
Will Fleming
committed
Dockerfile: set WORKDIR to /code
This is best practice for engines now.
1 parent db2cd8f commit 5d14c23

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,7 @@ USER app
1717
RUN cd /usr/src/app && \
1818
rake docs:scrape
1919

20+
VOLUME /code
21+
WORKDIR /code
22+
2023
CMD ["/usr/src/app/bin/codeclimate-rubocop"]

bin/codeclimate-rubocop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ else
1111
engine_config = {}
1212
end
1313

14-
CC::Engine::Rubocop.new("/code", engine_config, STDOUT).run
14+
CC::Engine::Rubocop.new(Dir.pwd, engine_config, STDOUT).run

0 commit comments

Comments
 (0)