all repos — min @ bbd2091933fd5352f2dab281bee77dec55349edb

A small but practical concatenative programming language.

Dockerfile

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
# use Alpine+Nim as a basis 
FROM frolvlad/alpine-nim

# install necessary packages
RUN apk update
RUN apk add curl git

# clone repository
RUN git clone https://github.com/h3rald/min.git

# install nifty
RUN nimble install -y nifty

# set path to nifty
# (for some reason it doesn't pick it up by itself)
ENV PATH="/root/.nimble/pkgs/nifty-1.2.2:${PATH}"

# install dependencies with nifty
RUN cd min && nifty install

# build min
RUN cd min && nim c -d:release -d:ssl -o:min min

# set our PATH to the min's location
ENV PATH="/min:${PATH}"

# set our workdir to /home
# (where our local files will be mirrored)
WORKDIR /home

# start up the main binary 
ENTRYPOINT [ "/min/min" ]