Setting up to do some minimal admin auth for the relay
This commit is contained in:
parent
eb71f33e28
commit
c21ee1fe48
3 changed files with 8 additions and 5 deletions
projects/activitypub_relay
|
@ -1,19 +1,20 @@
|
|||
FROM library/python:3.10
|
||||
MAINTAINER Reid McKenzie <me@arrdem.com>
|
||||
MAINTAINER Reid 'arrdem' McKenzie <me@arrdem.com>
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
RUN adduser app
|
||||
RUN mkdir /app
|
||||
RUN useradd -d /app app
|
||||
RUN mkdir -p /app
|
||||
RUN chown -R app:app /app
|
||||
USER app
|
||||
WORKDIR /app
|
||||
ENV PATH="/app/.local/bin:${PATH}"
|
||||
ENV PYTHONPATH="/app:${PYTHONPATH}"
|
||||
ENV DOCKER_RUNNING=true # Trivialize detecting dockerization
|
||||
|
||||
### App specific crap
|
||||
# Deps vary least so do them first
|
||||
RUN pip install --user install aiohttp async_lru cachetools click pycryptodome pyyaml retry
|
||||
RUN pip install --user install aiohttp aiohttp_basicauth async_lru cachetools click pycryptodome pyyaml retry
|
||||
|
||||
COPY --chown=app:app src/python .
|
||||
COPY --chown=app:app relay.yaml .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue