Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Whong committed Sep 3, 2017
1 parent 7c1a4ce commit 8bed016
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -152,24 +152,22 @@ ENV LC_ALL en_US.UTF-8


RUN cd cartodb &&\
npm install [email protected] -g &&\
npm -v &&\
export PATH=$PATH:$PWD/node_modules/grunt-cli/bin &&\
bundle install &&\
bundle exec grunt --environment production

RUN service postgresql start && service redis-server start &&\
cd cartodb &&\
bundle exec rake db:create &&\
bundle exec rake db:create &&\
bundle exec rake db:migrate &&\
service postgresql stop && service redis-server stop


ADD ./create_user /cartodb/script/create_user
RUN service postgresql start && service redis-server start && \
bash -l -c "cd /cartodb && bash script/create_user" && \
service postgresql stop && service redis-server stop


EXPOSE 3000 8080 8181

ENV GDAL_DATA /usr/share/gdal/2.1
Expand Down

0 comments on commit 8bed016

Please sign in to comment.