P01yH3dr0n commited on
Commit
29b916b
·
verified ·
1 Parent(s): 108462e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -2
Dockerfile CHANGED
@@ -48,10 +48,9 @@ RUN \
48
  chmod +x "./docker-entrypoint.sh" && \
49
  echo "*** Convert line endings to Unix format ***" && \
50
  dos2unix "./docker-entrypoint.sh"
51
- RUN sed -i 's/# Start the server/echo $(ls -A | grep -v .git) \&\& .\/launch.sh env \&\& .\/launch.sh init/g' docker-entrypoint.sh
52
  RUN chmod -R 777 ${APP_HOME}
53
 
54
  EXPOSE 7860
55
 
56
- RUN [ -f launch.sh ] && echo "File exists" || echo "File does not exist"
57
  CMD [ "./docker-entrypoint.sh" ]
 
48
  chmod +x "./docker-entrypoint.sh" && \
49
  echo "*** Convert line endings to Unix format ***" && \
50
  dos2unix "./docker-entrypoint.sh"
51
+ RUN sed -i 's/# Start the server/echo "Current directory: $(pwd)"\&\&\echo "Script directory: $(dirname "\$0")"\&\&ls -la "$(dirname "\$0")" \&\& .\/launch.sh env \&\& .\/launch.sh init/g' docker-entrypoint.sh
52
  RUN chmod -R 777 ${APP_HOME}
53
 
54
  EXPOSE 7860
55
 
 
56
  CMD [ "./docker-entrypoint.sh" ]