Start trimming some of the __main__ crud
This commit is contained in:
parent
c21ee1fe48
commit
01c24f64ab
5 changed files with 102 additions and 120 deletions
projects/activitypub_relay
|
@ -10,14 +10,13 @@ USER app
|
|||
WORKDIR /app
|
||||
ENV PATH="/app/.local/bin:${PATH}"
|
||||
ENV PYTHONPATH="/app:${PYTHONPATH}"
|
||||
ENV DOCKER_RUNNING=true # Trivialize detecting dockerization
|
||||
# Trivialize detecting dockerization
|
||||
ENV DOCKER_RUNNING=true
|
||||
|
||||
### App specific crap
|
||||
# Deps vary least so do them first
|
||||
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 .
|
||||
COPY --chown=app:app relay.jsonld .
|
||||
COPY --chown=app:app src/python relay.yaml relay.jsonld .
|
||||
|
||||
CMD ["python3", "relay/__main__.py", "-c", "relay.yaml"]
|
||||
CMD ["python3", "relay/__main__.py", "-c", "relay.yaml", "run"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue