temp4 / Dockerfile
motoe moto
Update Dockerfile
3129e85 verified
raw
history blame contribute delete
587 Bytes
# Use the linuxserver/firefox image as the base image
FROM lscr.io/linuxserver/firefox:latest
# Set up environment variables
ENV PUID=1000
ENV PGID=1000
ENV TZ=Etc/UTC
# Create a user with user ID 1000 to match Hugging Face's requirement
# UN useradd -m -u 1000 user
# Set the user and working directory to avoid permission issues
USER user
ENV HOME=/home/user
WORKDIR $HOME/app
# Copy the local files to the container with the correct ownership
COPY --chown=user . $HOME/app
# Expose necessary ports
EXPOSE 3000
EXPOSE 3001
# Define the command to run the container
CMD ["/init"]