File size: 587 Bytes
1abf991 0f56736 3129e85 f835ef0 ae4ba96 0f56736 1abf991 0f56736 1abf991 a62f90e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# 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"]
|