Skip to content

Commit 70e4fd5

Browse files
author
Will Fleming
committed
Dockerfile: set WORKDIR to /code
This is best practice for engines now.
1 parent 2a80509 commit 70e4fd5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Diff for: Dockerfile

+3
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"]

Diff for: bin/codeclimate-rubocop

+1-1
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)