You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I tried to do a launchpad up without a Dockerfile and saw:
(base) ➜ advent_of_code git:(master) launchpad up
We have updated your project's launchpad.yaml. Please commit that to your repository.
# Building project advent-of-code
# Step 1/3 Building Docker image...
Error: Dockerfile missing.
- Please add a Dockerfile manually under your app directory.
- You can find an example Dockerfile at https://github.com/jetpack-io/project-templates/blob/main/api/Dockerfile.
- Alternatively, to use a pre-existing image, you can add an Image: field to your service in launchpad.yaml or jetconfig.yaml.
Caused by:
failed to tail logs: Error building image: Error building: failed to validate build plan: Dockerfile missing.
- Please add a Dockerfile manually under your app directory.
- You can find an example Dockerfile at https://github.com/jetpack-io/project-templates/blob/main/api/Dockerfile.
- Alternatively, to use a pre-existing image, you can add an Image: field to your service in launchpad.yaml or jetconfig.yaml.
Run with --debug for more information
@sindhubb thanks for pointing this out. The URL and the file do exist but they are in a private repo. I'll ask the team to either make the repo public or create an alternative URL. Meanwhile, I can put the content of the Dockerfile that launchpad is referring to.
FROM amd64/python:3.9.7-slim
WORKDIR /app
# Uncomment the line below and to add your apt-get packages # RUN apt-get update && apt-get install -y openssh-client git
COPY requirements.txt /app
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# These lines ensure that the latest version of the Jetpack SDK is installed # without reinstalling your other dependencies
ADD https://releases.jetpack.io/sdk/python/version.txt ./jetpack-python-sdk-version.txt
RUN pip install jetpack-io -U
COPY ./app /app
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]
Hi, I tried to do a
launchpad up
without a Dockerfile and saw:However the link https://github.com/jetpack-io/project-templates/ does not exist
The text was updated successfully, but these errors were encountered: