Skip to content

Commit 189f0ab

Browse files
committed
Update Dockerfile and Go module version; enhance build-info.json
1 parent 55a7f81 commit 189f0ab

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

Dockerfile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1: Build Go binary
2-
FROM golang:1.22 AS builder
2+
FROM golang:1.25.3 AS builder
33
WORKDIR /app
44
COPY config/atlas_go /app
55
# If you have go.mod in config/atlas_go, this is enough; otherwise add module init
@@ -9,11 +9,12 @@ RUN go build -o atlas .
99
# Stage 2: Runtime
1010
FROM python:3.11-slim
1111

12-
RUN apt update && apt install -y \
13-
nginx iputils-ping traceroute nmap sqlite3 net-tools curl jq ca-certificates nbtscan \
14-
&& pip install --no-cache-dir fastapi uvicorn \
15-
&& apt install -y docker.io \
16-
&& apt clean && rm -rf /var/lib/apt/lists/*
12+
RUN apt-get update && \
13+
apt-get install -y \
14+
nginx iputils-ping traceroute nmap sqlite3 net-tools curl jq ca-certificates nbtscan docker.io && \
15+
apt-get upgrade -y && \
16+
pip install --no-cache-dir fastapi==0.121.0 uvicorn==0.38.0 protobuf==4.25.8 && \
17+
apt-get clean && rm -rf /var/lib/apt/lists/*
1718

1819
# Remove default Nginx config
1920
RUN rm -f /etc/nginx/conf.d/default.conf /etc/nginx/sites-enabled/default || true

config/atlas_go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module atlas
22

3-
go 1.19
3+
go 1.25
44

55
require github.com/mattn/go-sqlite3 v1.14.17

data/html/build-info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{ "version": "dev-local", "commit": "uncommitted", "builtAt": "not-built" }
1+
{ "version": "3.3.1", "commit": "55a7f81", "builtAt": "2025-11-05T21:00:20Z" }

0 commit comments

Comments
 (0)