forked from tcltk/tcl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3159775
commit 27a3d34
Showing
2 changed files
with
12 additions
and
6 deletions.
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 |
---|---|---|
@@ -1,13 +1,20 @@ | ||
# Build Stage | ||
FROM --platform=linux/amd64 ubuntu:20.04 as builder | ||
|
||
## Install build dependencies. | ||
RUN apt-get update | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y vim less man wget tar git gzip unzip make cmake software-properties-common curl | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y make gcc | ||
|
||
ADD . /repo | ||
WORKDIR /repo/unix | ||
ENV LD_LIBRARY_PATH=/repo/unix | ||
RUN ldconfig | ||
RUN ./configure | ||
RUN make -j8 | ||
|
||
RUN mkdir -p /deps | ||
RUN ldd /repo/unix/tclsh | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % sh -c 'cp % /deps;' | ||
|
||
FROM ubuntu:20.04 as package | ||
|
||
COPY --from=builder /deps /deps | ||
COPY --from=builder /repo/unix/tclsh /repo/unix/tclsh | ||
ENV LD_LIBRARY_PATH=/deps |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
project: rnshah9/mayhem-tcl | ||
project: tcl | ||
target: tclsh | ||
tests: null | ||
|
||
cmds: | ||
- cmd: /repo/unix/tclsh @@ | ||
- cmd: /repo/unix/tclsh /test.tcl | ||
filepath: /test.tcl |