Skip to content

Commit

Permalink
added coreutils and gunicorn to the docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
njfio committed Aug 22, 2024
1 parent 9ef218e commit de66f2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
17 changes: 7 additions & 10 deletions fluent-env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@ FROM alpine:latest

RUN apk update && apk upgrade

# Install dependencies
RUN apk add py3-gunicorn
RUN apk add coreutils
RUN apk add jq
RUN apk add pandoc
RUN apk add neo4j
# Install dependencies

#install Python and Ruby
RUN apk add --no-cache build-base bash git curl wget python3 python3-dev py3-pip \
ruby ruby-dev ruby-irb ruby-rdoc ruby-json ruby-bigdecimal
RUN apk add screen
Expand Down Expand Up @@ -62,16 +66,9 @@ RUN neo4j-admin set-initial-password system2024!

#CMD ["/.fluent/start-neo4j.sh"]
#CMD ["/.fluent/start-flask.sh"]
CMD ["/.fluent/start-combined.sh"]
#CMD ["python", "app.py", "&"]
#RUN python -m flask run --host=0.0.0.0 --port=5000 &
#CMD ["python3", "app.py"]

# Set up Entrypoint


# /.fluent/start-combined.sh

WORKDIR /app
#CMD ["/.fluent/start-combined.sh"]
ENTRYPOINT ["bash"]

RUN echo "source /.fluent/fluent_autocomplete.sh" >> ~/.bashrc
2 changes: 1 addition & 1 deletion fluent-env/start-combined.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
# Start Neo4j in the background
neo4j start &

screen -d -m flask python /app/app.py
nohup gunicorn -w 2 app:app &

echo "started neo4j and web server"

0 comments on commit de66f2f

Please sign in to comment.