Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
FROM ruby:2.3
RUN apt-get update -qq && apt-get install -y nodejs

# We need the spring socket file to be readable by the local user on the host,
# so we need to set up a user account with the same UID. Change this if your
# UID is not 1000. Obviously there are ways to make this more flexible (build
# args etc).
RUN useradd --create-home --user-group --uid 1000 app

RUN mkdir /app && chown -R app:app /app
WORKDIR /app
USER app

ADD Gemfile /app/Gemfile
ADD Gemfile.lock /app/Gemfile.lock
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
build: .
volumes:
- .:/app
command: spring server
command: sh -c "umask a+rw; exec spring server"

# This ensures that the pid namespace is shared between the host
# and the container. It's not necessary to be able to run spring
Expand Down