Skip to content

Commit

Permalink
front end change
Browse files Browse the repository at this point in the history
  • Loading branch information
njfio committed Aug 21, 2024
1 parent 82994d4 commit 8be6802
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions fluent-env/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ RUN apk update && apk upgrade
RUN apk add jq
RUN apk add pandoc

# Install dependencies
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

Expand All @@ -13,13 +14,16 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
ENV PATH="/root/.cargo/bin:${PATH}"

# Install Fluent CLI
RUN cargo install --git https://github.com/njfio/fluent_cli fluent

RUN cargo install --git https://github.com/njfio/fluent_cli --branch v.0.5.5-feature-docker-image fluent
# Install Amber CLI
RUN cargo install --git https://github.com/fpco/amber amber
# Install Flask
RUN apk add py3-flask
RUN mkdir /app
RUN mkdir /app/frontend

RUN pip install flask

COPY ./frontend /app/frontend
RUN cp ~/.cargo/git/checkouts/fluent_cli-*/*/frontend.py /app/frontend/app.py
RUN cp ~/.cargo/git/checkouts/fluent_cli-*/*/front_end_index.html /app/frontend/index.html

EXPOSE 5000

Expand Down
2 changes: 1 addition & 1 deletion frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

@app.route('/', methods=['GET'])
def index():
return app.send_static_file('front_end_index.html')
return app.send_static_file('index.html')

@app.route('/execute', methods=['POST'])
def execute_fluent():
Expand Down

0 comments on commit 8be6802

Please sign in to comment.