Nick Ning
Nick Ning3w ago

Error when deploy on AWS Lightsail: "exec /tini: exec format error"

Following the official tutorial to deploy on AWS Lightsail. I have the same files (main.ts, Dockerfile, docker-compose.yml), and it works in local. I pushed to Docker Hub then pulled, it works as well. However, when deploy it to Lightsail, it failed with error: exec /tini: exec format error Dockerfile: FROM denoland/deno EXPOSE 8000 WORKDIR /app ADD . /app RUN deno install --entrypoint main.ts CMD ["run", "--allow-net", "main.ts"] docker-compose.yml: version: "3" services: web: build: . container_name: deno-container image: deno-image ports: - "8000:8000" I'm new to Docker. What are the possible reasons that it doesn't work on Lightsail?
Deno
Deploy Deno to Amazon Lightsail
In-depth documentation, guides, and reference materials for building secure, high-performance JavaScript and TypeScript applications with Deno
No description
0 Replies
No replies yetBe the first to reply to this messageJoin