Skip to content

Commit

Permalink
[Fix] πŸ› Docker Build Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-zklcdc committed May 9, 2024
1 parent b929f1c commit 4ddd042
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:latest

ENV GBP_USER ${GBP_USER:-gbp}
ENV GBP_USER ${GBP_USER:-ubuntu}
ENV GBP_USER_ID ${GBP_USER_ID:-1000}

WORKDIR /app
Expand Down Expand Up @@ -38,8 +38,8 @@ RUN apt-get clean && \
COPY start-xvfb.sh /opt/bin/start-xvfb.sh
COPY supervisor.conf /etc/supervisor/conf.d/supervisor.conf

RUN groupadd -g $GBP_USER_ID $GBP_USER
RUN useradd -rm -G sudo -u $GBP_USER_ID -g $GBP_USER_ID $GBP_USER
# RUN groupadd -g $GBP_USER_ID $GBP_USER
# RUN useradd -rm -G sudo -u $GBP_USER_ID -g $GBP_USER_ID $GBP_USER

RUN mkdir -p /tmp/edge /var/run/supervisor /var/log/supervisor
RUN chown "${GBP_USER_ID}:${GBP_USER_ID}" /var/run/supervisor /var/log/supervisor
Expand Down

0 comments on commit 4ddd042

Please sign in to comment.