Created
May 23, 2020 20:11
-
-
Save nodakai/bc0c80381cd0b787d8a5c65a1771ef5f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/bin/bash | |
| set -eu | |
| set -x | |
| docker build -t deno-cent7 . |
This file contains hidden or 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
| FROM centos:7 | |
| RUN yum upgrade -y \ | |
| && yum install -y git gcc \ | |
| && yum clean packages | |
| RUN curl -sSf https://sh.rustup.rs | sh -s -- -y | |
| WORKDIR /tmp | |
| CMD git clone --recurse-submodules https://github.com/denoland/deno.git \ | |
| && cd deno \ | |
| && . ~/.cargo/env \ | |
| && cargo build --release \ | |
| && mv target/release/deno /output |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -eu | |
| set -x | |
| docker rm deno-cent7-0 || true | |
| docker run -v "$(pwd)":/output --name deno-cent7-0 deno-cent7 |
Memo: FROM registry.access.redhat.com/ubi7 also looks good
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of 2021/01/15, I get:
I removed
--recurse-submodulesfrom the Dockerfile to get it going.Also not that you have to rename
deno-on-cent7.DockerfiletoDockerfilebefore you runbuild-deno-on-cent7.bashThanks for this gist!