-
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.
- Loading branch information
1 parent
4bad067
commit 6e77e5a
Showing
6 changed files
with
71 additions
and
57 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,39 @@ | ||
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 \ | ||
vim \ | ||
curl \ | ||
git \ | ||
sqlite3 \ | ||
libpq-dev \ | ||
libmariadb-dev | ||
|
||
# ===== Nim ===== | ||
ARG VERSION="2.0.0" | ||
# 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,32 @@ | ||
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 \ | ||
git \ | ||
sqlite3 \ | ||
libpq-dev \ | ||
libmariadb-dev | ||
|
||
# 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