Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ RUN mkdir /mcr-install \

WORKDIR /mcr-install

RUN wget https://ssd.mathworks.com/supportfiles/downloads/R2021a/Release/1/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2021a_Update_1_glnxa64.zip
ENV MATLAB_RUNTIME_SHA256="b821022690804e498d2e5ad814dccb64aab17c5e4bc10a1e2a12498ef5364e0d"
Comment thread
GaneshPatil7517 marked this conversation as resolved.
Outdated

RUN wget https://ssd.mathworks.com/supportfiles/downloads/R2021a/Release/1/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2021a_Update_1_glnxa64.zip \
&& echo "${MATLAB_RUNTIME_SHA256} MATLAB_Runtime_R2021a_Update_1_glnxa64.zip" | sha256sum -c -

RUN unzip MATLAB_Runtime_R2021a_Update_1_glnxa64.zip \
&& ./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent \
Expand Down
8 changes: 6 additions & 2 deletions fri/server/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@


app = Flask(__name__)
app.secret_key = "secret key"
app.secret_key = os.environ.get("FLASK_SECRET_KEY")
if not app.secret_key:
raise RuntimeError("FLASK_SECRET_KEY environment variable not set")
Comment thread
GaneshPatil7517 marked this conversation as resolved.
Outdated

cors = CORS(app)
app.config['CORS_HEADERS'] = 'Content-Type'
Expand Down Expand Up @@ -407,4 +409,6 @@ def openJupyter():


if __name__ == "__main__":
app.run(host="0.0.0.0", port=5000)
# In production, use:
# gunicorn -w 4 -b 0.0.0.0:5000 main:app
Comment thread
GaneshPatil7517 marked this conversation as resolved.
Outdated
app.run(host="0.0.0.0", port=5000, debug=False)
Loading