Skip to content

Instantly share code, notes, and snippets.

@kongzii
Last active July 21, 2020 17:29
Show Gist options
  • Save kongzii/a3e0243f938abd14d3cffb1eb00a4a0a to your computer and use it in GitHub Desktop.
Save kongzii/a3e0243f938abd14d3cffb1eb00a4a0a to your computer and use it in GitHub Desktop.
Dockerfile with installted coursier
FROM ubuntu:20.04
RUN apt-get update \
&& apt-get upgrade -y
RUN apt-get install -y curl
RUN cd /root \
&& curl -Lo cs https://git.io/coursier-cli-linux \
&& chmod +x cs \
&& ./cs setup --yes
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
WORKDIR /app
ENTRYPOINT ["/entrypoint.sh"]
#!/bin/bash
set -e
source ~/.profile
exec "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment