Tweaks to working state
This commit is contained in:
parent
e5b9b133fc
commit
e90ce6b8ef
5 changed files with 11 additions and 8 deletions
projects/activitypub_relay
|
@ -4,14 +4,15 @@ FROM library/python:3.10
|
|||
RUN pip install --upgrade pip
|
||||
|
||||
RUN useradd -d /app app
|
||||
RUN mkdir -p /app
|
||||
RUN chown -R app:app /app
|
||||
RUN mkdir -p /app /data
|
||||
RUN chown -R app:app /app /data
|
||||
USER app
|
||||
WORKDIR /app
|
||||
VOLUME /data
|
||||
ENV DOCKER_RUNNING=true
|
||||
|
||||
ENV PYTHONPATH="/app:${PYTHONPATH}"
|
||||
ENV PYTHONUNBUFFERED=true
|
||||
ENV PATH="/app/.local/bin:${PATH}"
|
||||
|
||||
### App specific crap
|
||||
|
@ -22,4 +23,4 @@ COPY --chown=app:app docker_relay.sh /app/relay.sh
|
|||
COPY --chown=app:app src/python /app/
|
||||
|
||||
EXPOSE 8080
|
||||
ENTRYPOINT ["/bin/sh", "/app/relay.sh"]
|
||||
CMD ["/bin/sh", "/app/relay.sh"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue