forked from UOX3DevTeam/UOX3
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request UOX3DevTeam#164 from UOX3DevTeam/feature/docker-build
Docker build (not run)
- Loading branch information
Showing
8 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Dockerfile* | ||
.git | ||
.github | ||
vs2022 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
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 | ||
|
||
FROM buildbase AS buildapp | ||
WORKDIR /root/uox3 | ||
COPY . . | ||
RUN find /root/uox3 -name \* -type f -exec dos2unix {} \; | ||
RUN cd /root/uox3 && ./automake.sh | ||
CMD ["/bin/bash"] | ||
|
||
FROM quay.io/centos/centos:stream | ||
RUN yum -y install glibc.i686 dos2unix && yum clean all && rm -rf /var/cache/yum | ||
RUN adduser --system --create-home uox3 | ||
USER uox3 | ||
RUN mkdir -p ~/app | ||
WORKDIR /home/uox3/app | ||
COPY --from=buildapp --chown=uox3 /root/uox3/uox3 . | ||
COPY --chown=uox3 data data/ | ||
COPY --chown=uox3 docs docs/ | ||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,4 +63,4 @@ else | |
echo "uox3 program not found! Please review the build status." | ||
cd ../../.. | ||
fi | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.sh text eol=lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env bash | ||
cd ~/app | ||
./uox3 data/uox.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters