#6045 add Ubuntu 20.04 compatible Docker image

This commit is contained in:
khalyomede 2023-11-22 15:39:36 +01:00
parent ebaf822435
commit a134484853
3 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,16 @@
FROM ubuntu:20.04
RUN apt-get update --fix-missing
RUN apt-get upgrade --yes
RUN apt-get install --yes \
wget \
libc-dev \
binutils \
build-essential \
clang
RUN wget -q -O roc.tar.gz https://github.com/roc-lang/roc/releases/download/nightly/roc_nightly-linux_x86_64-latest.tar.gz
RUN mkdir /usr/lib/roc
# --strip-components=1 not needed once https://github.com/roc-lang/roc/issues/4118 is solved.
RUN tar -xvz -f roc.tar.gz --directory /usr/lib/roc --strip-components=1
ENV PATH="$PATH:/usr/lib/roc"

View file

@ -0,0 +1,8 @@
version: "3"
services:
roc:
build: .
entrypoint: roc
working_dir: /home/ubuntu/app
volumes:
- ../../:/home/ubuntu/app