Skip to content

Commit 70b8e1f

Browse files
committed
create dockerfile and entrypoint for docker
1 parent 94773e1 commit 70b8e1f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

Dockerfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# This dockerfile is used to build sandbox image for docker clouds. It's not meant to be used in projects
2+
FROM ruby:2.4.0
3+
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs
4+
RUN mkdir /spree
5+
WORKDIR /spree
6+
ADD . /spree
7+
RUN bundle install
8+
RUN bundle exec rake sandbox
9+
CMD ["sh", "docker-entrypoint.sh"]

docker-entrypoint.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
# This is entrypoint for docker image of spree sandbox on docker cloud
3+
4+
RAILS_ENV=development cd sandbox && bundle exec rails s -p 3000 -b '0.0.0.0'

0 commit comments

Comments
 (0)