Intern the relay
This commit is contained in:
parent
8737b7456b
commit
9d7ee93f8c
16 changed files with 2081 additions and 1 deletions
projects/activitypub_relay
22
projects/activitypub_relay/Dockerfile
Normal file
22
projects/activitypub_relay/Dockerfile
Normal file
|
@ -0,0 +1,22 @@
|
|||
FROM library/python:3.10
|
||||
MAINTAINER Reid McKenzie <me@arrdem.com>
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
|
||||
RUN adduser app
|
||||
RUN mkdir /app
|
||||
RUN chown -R app:app /app
|
||||
USER app
|
||||
WORKDIR /app
|
||||
ENV PATH="/app/.local/bin:${PATH}"
|
||||
ENV PYTHONPATH="/app:${PYTHONPATH}"
|
||||
|
||||
### App specific crap
|
||||
# Deps vary least so do them first
|
||||
RUN pip install --user install aiohttp async_lru cachetools click pycryptodome pyyaml retry
|
||||
|
||||
COPY --chown=app:app src/python .
|
||||
COPY --chown=app:app relay.yaml .
|
||||
COPY --chown=app:app relay.jsonld .
|
||||
|
||||
CMD ["python3", "relay/__main__.py", "-c", "relay.yaml"]
|
Loading…
Add table
Add a link
Reference in a new issue