Skip to content

Commit

Permalink
Fix Dockerfile venv so plugins can be installed at runtime (CTFd#2260)
Browse files Browse the repository at this point in the history
* Set ownership of venv in Dockerfile to 1001
  • Loading branch information
ColdHeat authored Feb 15, 2023
1 parent 472010f commit c8dbfa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ RUN useradd \
&& chown -R 1001:1001 /var/log/CTFd /var/uploads \
&& chmod +x /opt/CTFd/docker-entrypoint.sh

COPY --from=build /opt/venv /opt/venv
COPY --chown=1001:1001 --from=build /opt/venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

USER 1001
Expand Down

0 comments on commit c8dbfa6

Please sign in to comment.