New to linux/docker and was wondering if theres any sort of “blank” app that would let me use the linux terminal (ex.
fly ssh console) without having an actual app. I have some bash scripts (because i am familiar with bash) and i do not know anything about writing a dockerfile to run it. Ive tried this:
FROM ubuntu:latest WORKDIR /app COPY main.sh /app RUN chmod +x /app/main.sh CMD ["/app/main.sh"]
Obviously something is wrong here.
It gets through all the regular deployment stuff when doing
fly deploy, and then says
Error abort once monitoring deployment.
Here is the logs of the monitor page on fly.io:
(runner) [info] Starting virtual machine [info] Starting init (commit: 8af0ddf)... [info] Preparing to run: `/app/main.sh` as root [info] Error: failed to spawn command: /app/main.sh: No such file or directory (os error 2) [info] does `/app/main.sh` exist and is it executable?
Any help would be greatly appreciated.