Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

109 - Make Docker COPY src more inclusive #110

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions Minimal/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ COPY --from=stage_one --chown=app /home/app/.edm /home/app/.edm
# Make any global changes (yum install, e.g.) in the second stage.
# Don't change the user, and in particular don't make the user "root".

# Copy startup script and application.
COPY --chown=app ./src/startup-script.sh /home/app/startup-script.sh
# Copy source and make startup-script executable
COPY --chown=app ./src/ /home/app
RUN chmod +x /home/app/startup-script.sh
COPY --chown=app ./src/main.py /home/app/main.py

CMD ["/home/app/startup-script.sh"]
5 changes: 2 additions & 3 deletions Panel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ COPY --from=stage_one --chown=app /home/app/.edm /home/app/.edm
# Make any global changes (yum install, e.g.) in the second stage.
# Don't change the user, and in particular don't make the user "root".

# Copy startup script and application.
COPY --chown=app ./src/startup-script.sh /home/app/startup-script.sh
# Copy source and make startup-script executable
COPY --chown=app ./src/ /home/app
RUN chmod +x /home/app/startup-script.sh
COPY --chown=app ./src/app.py /home/app/app.py

CMD ["/home/app/startup-script.sh"]
5 changes: 2 additions & 3 deletions Plotly Dash/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ COPY --from=stage_one --chown=app /home/app/.edm /home/app/.edm
# Make any global changes (yum install, e.g.) in the second stage.
# Don't change the user, and in particular don't make the user "root".

# Copy startup script and application.
COPY --chown=app ./src/startup-script.sh /home/app/startup-script.sh
# Copy source and make startup-script executable
COPY --chown=app ./src/ /home/app
RUN chmod +x /home/app/startup-script.sh
COPY --chown=app ./src/app.py /home/app/app.py

CMD ["/home/app/startup-script.sh"]
5 changes: 2 additions & 3 deletions React/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ COPY --from=stage_one --chown=app /home/app/.edm /home/app/.edm
# Make any global changes (yum install, e.g.) in the second stage.
# Don't change the user, and in particular don't make the user "root".

# Copy startup script and application.
COPY --chown=app ./src/startup-script.sh /home/app/startup-script.sh
# Copy source and make startup-script executable
COPY --chown=app ./src/ /home/app
RUN chmod +x /home/app/startup-script.sh
COPY --chown=app ./src/application/ /home/app/application


CMD ["/home/app/startup-script.sh"]
5 changes: 2 additions & 3 deletions Streamlit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ COPY --from=stage_one --chown=app /home/app/.edm /home/app/.edm
# Make any global changes (yum install, e.g.) in the second stage.
# Don't change the user, and in particular don't make the user "root".

# Copy startup script and application.
COPY --chown=app ./src/startup-script.sh /home/app/startup-script.sh
# Copy source and make startup-script executable
COPY --chown=app ./src/ /home/app
RUN chmod +x /home/app/startup-script.sh
COPY --chown=app ./src/app.py /home/app/app.py

# Copy in the config file for Streamlit
RUN mkdir /home/app/.streamlit
Expand Down
Loading