I can not however manage to get passed the error standard_init_linux.go:187: exec user process caused "exec format error"
here is my simple app.py.
Code: Select all
import os
from flask import Flask
ipAddress = os.environ['HOST_IP']
app = Flask(__name__)
@app.route('/')
def index():
return 'Hey, we have Flask in a Docker container!'
if __name__ == "__main__":
app.run(debug=True, host=ipAddress)
Code: Select all
# syntax=docker/dockerfile:1
FROM python:3.9.6-slim-buster
ENV HOST_IP="0.0.0.0"
# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt
WORKDIR /app
RUN pip install -r requirements.txt
COPY . /app
CMD [ "python", "./app.py" ]
- successfully run on local machine prior to each test
- tried adding the shebang #!/bin/bash at the start of the Dockerfile
- changed line endings to LF instead of CRLF
The last thing I can think of is that the F2-210 is an ARM processor and apparently Docker runs different on that... but I don't know if that is the issue, or how to implement change for that.
Look forward to your replies.