Add db preparation and webpack compilation when launching the container

This commit is contained in:
riggraz
2019-08-25 20:47:44 +02:00
parent 24339c0e08
commit c67774334c
4 changed files with 23 additions and 13 deletions

View File

@@ -9,16 +9,15 @@ WORKDIR /app
COPY Gemfile /app/Gemfile
COPY Gemfile.lock /app/Gemfile.lock
RUN bundle install
RUN yarn install --check-files
RUN yarn install
COPY . /app
# Add a script to be executed every time the container starts.
COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
ENTRYPOINT ["/app/docker-entrypoint.sh"]
EXPOSE 3000