-
Notifications
You must be signed in to change notification settings - Fork 37
Windows build fails #36
Comments
Commented Step 8 Fails at Step 10 Step 10/12 : RUN flask db upgrade |
Same problem here, but using Ubuntu. You mananged to fix it? Edit: I createad a file named "app.db" and passed from that part, but now is throwing all sort of errors. Edit 2: I managed it to work. Will update the instructions soon. Edit 3: Don't use the docker container and get rid of the pusher. Run the application with "FLASK_APP=run.py flask run". It will work. |
Thanks! |
(env) C:\Projects\bootcamp>docker-compose build
Building web
Step 1/13 : FROM python:3.7.7-buster
---> e4e55e98f1e0
Step 2/13 : WORKDIR /usr/src/
---> Using cache
---> b5c8bcee73ce
Step 3/13 : ENV PYTHONDONTWRITEBYTECODE 1
---> Using cache
---> 93da15b46683
Step 4/13 : ENV PYTHONUNBUFFERED 1
---> Using cache
---> c1d88b621ac6
Step 5/13 : RUN pip install --upgrade pip
---> Using cache
---> 09f213628f58
Step 6/13 : COPY requirements.txt /usr/src/requirements.txt
---> Using cache
---> cb83e29b88c1
Step 7/13 : RUN pip install -r ./requirements.txt
---> Using cache
---> 6d65b576c1e6
Step 8/13 : COPY . /usr/src/
---> Using cache
---> 22099ed52895
Step 9/13 : RUN rm app.db
---> Running in 619257c97e26
rm: cannot remove 'app.db': No such file or directory
ERROR: Service 'web' failed to build: The command '/bin/sh -c rm app.db' returned a non-zero code: 1
The text was updated successfully, but these errors were encountered: