Skip to content

Commit 4795bff

Browse files
v1.8.0
1 parent 1e41136 commit 4795bff

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
FROM ubuntu:24.04
2121
LABEL maintainer="Allan CORNET [email protected]"
2222

23-
ENV NELSON_VERSION 1.7.0.4255
23+
ARG NELSON_VERSION=1.8.0
24+
ARG NELSON_VERSION_TAG=4314
2425

2526
RUN apt -q update;
2627
RUN apt -y upgrade;
@@ -71,12 +72,12 @@ RUN apt-get install -y libtbb12;
7172
RUN apt-get install -y python3;
7273
RUN apt-get install -y python3-numpy;
7374

74-
75-
RUN wget https://github.com/nelson-lang/nelson/releases/download/v1.7.0/nelson-Ubuntu-24.04-v${NELSON_VERSION}.deb
75+
RUN wget https://github.com/nelson-lang/nelson/releases/download/v${NELSON_VERSION}/nelson-Ubuntu-24.04-v${NELSON_VERSION}.${NELSON_VERSION_TAG}.deb && \
76+
apt install -y ./nelson-Ubuntu-24.04-v${NELSON_VERSION}.${NELSON_VERSION_TAG}.deb && \
77+
rm nelson-Ubuntu-24.04-v${NELSON_VERSION}.${NELSON_VERSION_TAG}.deb
7678

7779
RUN rm -rf /var/lib/apt/lists/*
7880

79-
RUN apt install -y ./nelson-Ubuntu-24.04-v${NELSON_VERSION}.deb
8081
WORKDIR "/nelson"
8182

8283
RUN mkdir /home/nelsonuser

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# nelson-sio-docker
1+
# nelson-docker
22

33
Docker official image for Nelson socket.IO client.
44

@@ -28,8 +28,12 @@ docker run -ti nelson-sio-cli
2828
docker rmi $(docker images -q) -f
2929
docker system prune -a
3030

31-
export NELSON_VERSION=1.7.0
32-
docker build -t nelsonsoftware/nelson-sio-cli:latest -t nelsonsoftware/nelson-sio-cli:v$NELSON_VERSION .
31+
32+
export NELSON_VERSION=1.8.0
33+
export NELSON_VERSION_TAG=4314
34+
35+
docker build --build-arg NELSON_VERSION=$NELSON_VERSION --build-arg NELSON_VERSION_TAG=$NELSON_VERSION_TAG -t nelsonsoftware/nelson-sio-cli:latest -t nelsonsoftware/nelson-sio-cli:v$NELSON_VERSION .
36+
3337
docker push nelsonsoftware/nelson-sio-cli:v$NELSON_VERSION
3438
docker push nelsonsoftware/nelson-sio-cli:latest
3539

0 commit comments

Comments
 (0)