Commit 43bd4d65383ab219fa41a16e02afed0624eef9a5

Authored by Leonardo Avellar
1 parent 538ed136
Exists in master

Adicionando diretório contendo o entrypoint relacionado ao projeto

Showing 1 changed file with 5 additions and 7 deletions   Show diff stats
vlibras-video-portal/Dockerfile
@@ -26,12 +26,11 @@ RUN apt-get update && \ @@ -26,12 +26,11 @@ RUN apt-get update && \
26 26
27 WORKDIR $APP_HOME 27 WORKDIR $APP_HOME
28 28
29 -ADD * $APP_HOME/  
30 -RUN bundle install 29 +ADD ./vlibras-video-portal/ $APP_HOME/
  30 +RUN bundle install && \
  31 + mv $APP_HOME/docker-entrypoint.sh /
31 32
32 -ADD . $APP_HOME  
33 -  
34 -COPY ./docker-entrypoint.sh / 33 +COPY ./vlibras-video-portal/docker-entrypoint.sh /
35 34
36 RUN chown -R vlibras. $APP_HOME && chmod +x /docker-entrypoint.sh && ln -sf /usr/share/zoneinfo/Sao_Paulo /etc/localtime 35 RUN chown -R vlibras. $APP_HOME && chmod +x /docker-entrypoint.sh && ln -sf /usr/share/zoneinfo/Sao_Paulo /etc/localtime
37 36
@@ -39,7 +38,6 @@ USER vlibras @@ -39,7 +38,6 @@ USER vlibras
39 38
40 EXPOSE 8080 39 EXPOSE 8080
41 40
42 -VOLUME ["/myapp/log"]  
43 -VOLUME ["/vlibraslportal"] 41 +VOLUME ["/myapp/log", "/vlibraslportal"]
44 42
45 ENTRYPOINT ["/docker-entrypoint.sh"] 43 ENTRYPOINT ["/docker-entrypoint.sh"]