Skip to content

Instantly share code, notes, and snippets.

@nodakai
Created May 23, 2020 20:11
Show Gist options
  • Save nodakai/bc0c80381cd0b787d8a5c65a1771ef5f to your computer and use it in GitHub Desktop.
Save nodakai/bc0c80381cd0b787d8a5c65a1771ef5f to your computer and use it in GitHub Desktop.
#!/bin/bash
set -eu
set -x
docker build -t deno-cent7 .
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
#!/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
@nodakai
Copy link
Author

nodakai commented Mar 20, 2022

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