-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
88 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,45 @@ | ||
FROM ubuntu:22.04 | ||
FROM ubuntu:24.04 | ||
|
||
# prevent timezone dialogue | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update; apt install -y libgnutls30 | ||
RUN apt update; \ | ||
apt upgrade -y | ||
RUN apt update | ||
RUN apt upgrade -y | ||
RUN apt install -y \ | ||
gcc \ | ||
xz-utils \ | ||
ca-certificates \ | ||
vim \ | ||
curl \ | ||
wget \ | ||
git \ | ||
sqlite3 \ | ||
libpq-dev \ | ||
libmariadb-dev | ||
gcc \ | ||
xz-utils \ | ||
ca-certificates \ | ||
libpcre3-dev \ | ||
vim \ | ||
curl \ | ||
git \ | ||
sqlite3 \ | ||
libpq-dev \ | ||
libmariadb-dev | ||
|
||
# ===== Nim ===== | ||
ARG VERSION="2.0.0" | ||
# gcc... for Nim | ||
# xz-utils... for unzip tar.xz | ||
# ca-certificates... for https | ||
# libpcre3-dev... for nim regex | ||
|
||
# Nim | ||
ARG NIM_VERSION="2.0.0" | ||
WORKDIR /root | ||
RUN curl https://nim-lang.org/choosenim/init.sh -o init.sh | ||
RUN sh init.sh -y | ||
RUN rm -f init.sh | ||
ENV PATH $PATH:/root/.nimble/bin | ||
RUN choosenim ${VERSION} | ||
RUN choosenim ${NIM_VERSION} | ||
|
||
# nimlangserver | ||
WORKDIR /root | ||
RUN curl -o nimlangserver.tar.gz -L https://github.com/nim-lang/langserver/releases/download/v1.6.0/nimlangserver-1.6.0-linux-amd64.tar.gz | ||
RUN tar zxf nimlangserver.tar.gz | ||
RUN rm -f nimlangserver.tar.gz | ||
RUN mv nimlangserver /root/.nimble/bin/ | ||
|
||
WORKDIR /root/project | ||
COPY ./allographer.nimble . | ||
RUN nimble install -y -d | ||
|
||
RUN git config --global --add safe.directory /root/project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM ubuntu:24.04 | ||
|
||
# prevent timezone dialogue | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update | ||
RUN apt upgrade -y | ||
RUN apt install -y \ | ||
gcc \ | ||
xz-utils \ | ||
ca-certificates \ | ||
libpcre3-dev \ | ||
curl \ | ||
git \ | ||
sqlite3 \ | ||
libpq-dev \ | ||
libmariadb-dev | ||
|
||
# gcc... for Nim | ||
# xz-utils... for unzip tar.xz | ||
# ca-certificates... for https | ||
# libpcre3-dev... for nim regex | ||
|
||
# Nim | ||
ARG NIM_VERSION="2.0.0" | ||
WORKDIR /root | ||
RUN curl https://nim-lang.org/choosenim/init.sh -o init.sh | ||
RUN sh init.sh -y | ||
RUN rm -f init.sh | ||
ENV PATH $PATH:/root/.nimble/bin | ||
RUN choosenim ${NIM_VERSION} | ||
|
||
WORKDIR /root/project | ||
COPY ./allographer.nimble . | ||
RUN nimble install -y -d | ||
|
||
RUN git config --global --add safe.directory /root/project | ||
|
||
WORKDIR /root/project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters