Help Needed: Docker Build Fails to Download AppImage File – File Not Found Error

Hello everyone,

I’m currently facing an issue while building a Docker image that involves downloading and executing an AppImage file. The Docker build process fails with a “File Not Found” error, and I’m seeking assistance to resolve this.

Problem Description:

I am using Docker to create an image that needs to download an AppImage file from a GitHub release and run it within a container. However, the wget command used to download the file results in a “404 Not Found” error. Here are the details:

Dockerfile:

FROM ubuntu:latest

# Install necessary packages
RUN apt-get update && apt-get install -y \
    wget \
    xvfb \
    x11vnc \
    fluxbox \
    websockify \
    xterm

# Create the /app directory
RUN mkdir -p /app

# Download the AppImage file from GitHub
RUN wget -O /app/PS4RemotePKG.AppImage https://github.com/Gkiokan/ps4-remote-pkg-sender/releases/download/v2.0.4/PS4.Remote.PKG.Sender.AppImage

# Make the file executable
RUN chmod +x /app/PS4RemotePKG.AppImage

# Expose port 9997 for web access
EXPOSE 9997

# Run the application
CMD /usr/bin/xvfb-run --server-args="-screen 0 1024x768x24" fluxbox & \
    /usr/bin/x11vnc -display :0 -N -forever -rfbport 5900 & \
    /usr/bin/websockify --web=/opt/noVNC-1.2.0 9997 localhost:5900 & \
    /app/PS4RemotePKG.AppImage

Error Message:

Step 4/5 : RUN wget -O /app/PS4RemotePKG.AppImage https://github.com/Gkiokan/ps4-remote-pkg-sender/releases/download/v2.0.4/PS4.Remote.PKG.Sender.AppImage
0.519 --2024-09-08 11:20:02--  https://github.com/Gkiokan/ps4-remote-pkg-sender/releases/download/2.0.4/PS4.Remote.PKG.Sender.AppImage
0.558 Resolving github.com (github.com)... 140.82.121.4
0.718 Connecting to github.com (github.com)|140.82.121.4|:443... connected.
0.766 HTTP request sent, awaiting response... 404 Not Found
0.928 2024-09-08 11:20:02 ERROR 404: Not Found.

Questions:

  1. Why is the file not found?
  • I’ve confirmed that the URL used in the wget command is correct, but it still results in a 404 error. Is there a mistake in the URL, or might the file be missing or moved?
  1. How can I correctly reference or download the AppImage file from GitHub?
  • What steps should I take to ensure the file is accessible and can be successfully downloaded during the Docker build process?
  1. Is there any alternative method to include the AppImage file in the Docker container if the download approach continues to fail?

I appreciate any guidance or suggestions you can provide to help resolve this issue. Thank you!

Best regards,

I don’t see a v2.0.4 tag in the package releases, perhaps you meant to use 2.10.4?

1 Like

I had hoped that I was just too dumb to copy it, but unfortunately, that wasn’t the case either.

I copied the wrong Dockerfile here. The current one looks like this:

FROM ubuntu:latest

# Installiere notwendige Pakete
RUN apt-get update && apt-get install -y \
    wget \
    xvfb \
    x11vnc \
    fluxbox \
    websockify \
    xterm

# Erstellen des /app Verzeichnisses
RUN mkdir -p /app

# Herunterladen der AppImage-Datei von GitHub
RUN wget -O /app/PS4.Remote.PKG.Sender.V2-2.10.4.AppImage https://github.com/Gkiokan/ps4-remote-pkg-sender/releases/download/v2.10.4/PS4.Remote.PKG.Sender.V2-2.10.4.AppImage

# Die Datei ausführbar machen
RUN chmod +x /app/PS4.Remote.PKG.Sender.V2-2.10.4.AppImage

# Expose Port 9997 für den Websockify-Server
EXPOSE 9997

# Starten von Xvfb, x11vnc, websockify und der AppImage-Datei
CMD /usr/bin/xvfb-run --server-args="-screen 0 1024x768x24" fluxbox & \
    /usr/bin/x11vnc -display :0 -N -forever -rfbport 5900 & \
    /usr/bin/websockify --web=/opt/noVNC-1.2.0 9997 localhost:5900 & \
    /app/PS4.Remote.PKG.Sender.V2-2.10.4.AppImage 

It is not just about the Dockerfile. Your error message contained the same URL. So please, share the actual error message you get when using this Dockerfile

1 Like