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:
- 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?
- 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?
- 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,