Add: entypoint script to docker backend
This commit is contained in:
parent
09203e797c
commit
89e6f2e271
2 changed files with 36 additions and 3 deletions
|
@ -31,10 +31,10 @@ COPY requirements.txt ./
|
|||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy the entrypoint script first
|
||||
COPY --chown=archivist:archivist ./entrypoint.sh /app/entrypoint.sh
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
|
||||
# Ensure it's executable inside the container too
|
||||
RUN chmod +x /app/entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
# Copy the rest of the backend source code
|
||||
COPY --chown=archivist:archivist . .
|
||||
|
@ -43,7 +43,7 @@ COPY --chown=archivist:archivist . .
|
|||
USER archivist
|
||||
|
||||
# Set the entrypoint script
|
||||
ENTRYPOINT ["/app/entrypoint.sh"]
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
|
||||
# Set the default command that the entrypoint will execute if none is provided by compose
|
||||
# This is useful if you run the image directly without compose sometimes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue