Spaces:
Paused
Paused
Update Dockerfile
Browse files12345678910111213141516171819202122232425262728293031323334FROM node:18# install gitRUN apt updateRUN apt install gitARG DEBIAN_FRONTEND=noninteractiveENV BING_HEADER ""# Set home to the user's home directoryENV HOME=/home/user \PATH=/home/user/.local/bin:$PATH# Set up a new user named "user" with user ID 1000RUN useradd -o -u 1000 user && mkdir -p $HOME/app && chown -R user $HOME# Switch to the "user" userUSER userWORKDIR $HOME/appRUN git clone https://github.com/Niansuh/Bingo.git BingoRUN chown -R user $HOME/app/BingoWORKDIR $HOME/app/BingoRUN npm installRUN npm run buildENV PORT 7860EXPOSE 7860CMD npm start1234567891011121314151617181920# Use the official Python base imageFROM python:3.8-slim# Set the working directory, subsequent commands will be executed in this directoryWORKDIR /app# Copy all files in the current directory to the working directoryCOPY . /app# Install Flask libraryRUN pip install Flask# Tell Docker the port number to listen on when running the containerEXPOSE 5000# Set environment variables to ensure Flask is running in production modeENV FLASK_ENV=development# Set the startup command to run the Flask applicationCMD ["flask", "run", "--host=0.0.0.0"]
Dockerfile+14-28