mirror of
https://github.com/xtekky/gpt4free.git
synced 2025-12-06 02:30:41 -08:00
Revert Dockerfile
This commit is contained in:
parent
8fef9b16f3
commit
30465d36dc
1 changed files with 12 additions and 13 deletions
|
|
@ -1,11 +1,11 @@
|
|||
FROM browserless/chrome
|
||||
FROM selenium/node-chrome
|
||||
|
||||
ARG G4F_VERSION
|
||||
ENV G4F_VERSION $G4F_VERSION
|
||||
|
||||
#ENV SE_SCREEN_WIDTH 1850
|
||||
ENV SE_SCREEN_WIDTH 1850
|
||||
ENV G4F_DIR /app
|
||||
#ENV G4F_LOGIN_URL http://localhost:7900/?autoconnect=1&resize=scale&password=secret
|
||||
ENV G4F_LOGIN_URL http://localhost:7900/?autoconnect=1&resize=scale&password=secret
|
||||
|
||||
USER root
|
||||
|
||||
|
|
@ -26,17 +26,17 @@ RUN apt-get -qqy update \
|
|||
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
||||
|
||||
# Update entrypoint
|
||||
#COPY docker/supervisor.conf /etc/supervisor/conf.d/selenium.conf
|
||||
#COPY docker/supervisor-api.conf /etc/supervisor/conf.d/api.conf
|
||||
COPY docker/supervisor.conf /etc/supervisor/conf.d/selenium.conf
|
||||
COPY docker/supervisor-api.conf /etc/supervisor/conf.d/api.conf
|
||||
|
||||
# Change background image
|
||||
#COPY docker/background.png /usr/share/images/fluxbox/ubuntu-light.png
|
||||
COPY docker/background.png /usr/share/images/fluxbox/ubuntu-light.png
|
||||
|
||||
# Add user, fix permissions
|
||||
#RUN chown "${SEL_UID}:${SEL_GID}" $HOME/.local /opt/venv/share
|
||||
RUN chown "${SEL_UID}:${SEL_GID}" $HOME/.local /opt/venv/share
|
||||
|
||||
# Switch user
|
||||
USER $BLESS_USER_ID
|
||||
USER $SEL_UID
|
||||
|
||||
# Set the working directory in the container.
|
||||
WORKDIR $G4F_DIR
|
||||
|
|
@ -45,12 +45,11 @@ WORKDIR $G4F_DIR
|
|||
COPY requirements.txt $G4F_DIR
|
||||
|
||||
# Upgrade pip for the latest features and install the project's Python dependencies.
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install --break-system-packages --upgrade pip \
|
||||
&& pip install --break-system-packages -r requirements.txt
|
||||
|
||||
# Copy the entire package into the container.
|
||||
ADD --chown=$BLESS_USER_ID:$BLESS_USER_ID g4f $G4F_DIR/g4f
|
||||
ADD --chown=$SEL_UID:$SEL_GID g4f $G4F_DIR/g4f
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 8080
|
||||
|
||||
CMD ./scripts/start.sh & python3 -m g4f --port=8080 --debug
|
||||
EXPOSE 8080 7900
|
||||
Loading…
Add table
Add a link
Reference in a new issue