Skip to content

Instantly share code, notes, and snippets.

@dtan4
Created September 2, 2018 10:30
Show Gist options
  • Save dtan4/d2b4d17f31e06f2f1527e10dea26d700 to your computer and use it in GitHub Desktop.
Save dtan4/d2b4d17f31e06f2f1527e10dea26d700 to your computer and use it in GitHub Desktop.
Dockerfile for ruby-packer for Linux
FROM ubuntu:18.04
RUN apt-get update \
&& apt-get install -y \
bison \
curl \
gcc \
make \
pkg-config \
ruby \
squashfs-tools \
&& rm -rf /var/lib/apt/lists/*
RUN curl -L http://enclose.io/rubyc/rubyc-linux-x64.gz | gunzip > rubyc \
&& chmod +x rubyc \
&& mv rubyc /usr/local/bin/rubyc
WORKDIR /app
COPY Gemfile /app/
COPY Gemfile.lock /app/
ENTRYPOINT ["/bin/bash"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment