Skip to content

Commit

Permalink
Remove heredocs dependency to increase compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
strattondrs committed Jan 11, 2023
1 parent 049f931 commit 29a27dc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#syntax = docker/dockerfile:1.4.0

FROM quay.io/centos/centos:stream AS buildbase
RUN yum -y install tar unzip glibc.i686 gcc dos2unix cmake gcc-c++ && yum clean all && rm -rf /var/cache/yum
RUN mkdir -p ~/uox3
Expand All @@ -20,10 +18,6 @@ WORKDIR /home/uox3/app
COPY --from=buildapp --chown=uox3 /root/uox3/uox3 .
COPY --chown=uox3 data data/
COPY --chown=uox3 docs docs/
RUN <<EOF cat >> ~/app/run.sh
#!/usr/bin/env bash
cd ~/app
./uox3 data/uox.ini
EOF
COPY --chown=uox3 docker/run.sh .
RUN chmod 777 /home/uox3/app/run.sh && dos2unix /home/uox3/app/run.sh
CMD ["/home/uox3/app/run.sh"]
1 change: 1 addition & 0 deletions docker/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.sh text eol=lf
3 changes: 3 additions & 0 deletions docker/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
cd ~/app
./uox3 data/uox.ini

0 comments on commit 29a27dc

Please sign in to comment.