Skip to content

Commit

Permalink
fix the dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
d-led committed Jan 11, 2024
1 parent 2b4e493 commit e227aac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*

ENV SHELL=bash
RUN sh -c "$(curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/ponylang/ponyup/latest-release/ponyup-init.sh)"
RUN ln -s /usr/local/lib/erlang /usr/lib/erlang && PATH=/root/.local/share/ponyup/bin:$PATH ponyup default x86_64-linux-ubuntu22.04 && ponyup update ponyc release
RUN curl https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/0.8.0/ponyup-x86-64-unknown-linux.tar.gz -o ponyup.tgz
RUN mkdir -p /root/.local/share/ponyup/bin/ && mkdir -p /tmp/ponyup && tar xvzf ponyup.tgz -C /tmp/ponyup && mv /tmp/ponyup/*/bin/* /root/.local/share/ponyup/bin
RUN echo "x86_64-linux-ubuntu20.04" > /root/.local/share/ponyup/.platform && ln -sf /root/.local/share/ponyup/bin/ponyup /usr/bin/ponyup && ponyup default "x86_64-linux-ubuntu20.04"
RUN ln -sf /usr/local/lib/erlang /usr/lib/erlang && ponyup update ponyc release && ln -sf /root/.local/share/ponyup/bin/ponyc /usr/bin/ponyc

ENV CC=cc
COPY . /src/main/
Expand Down

0 comments on commit e227aac

Please sign in to comment.