-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (28 loc) · 844 Bytes
/
Dockerfile
File metadata and controls
39 lines (28 loc) · 844 Bytes
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
33
34
35
36
37
38
39
# Dockerfile for GlyphGuard
# Base image with Go installed
FROM golang:1.21-alpine
# Metadata
LABEL maintainer="Ashkan Ebrahimi | O & TM Secure Manager Co"
LABEL version="0.1.0"
LABEL description="GlyphGuard - IDN Homograph Detector"
# Set environment
ENV CGO_ENABLED=0 \
GOOS=linux \
GOARCH=amd64 \
APP_NAME=glyphguard
# Create workdir
WORKDIR /app
# Copy Go module files and source
COPY go.mod go.sum ./
RUN go mod download
COPY glyphguard.go ./
# Build the binary
RUN go build -o $APP_NAME glyphguard.go
# Create logs directory
RUN mkdir -p /var/log/dns
# Expose ports if needed (ELK / Syslog is usually external)
# EXPOSE 9200
# Set entrypoint
ENTRYPOINT ["/app/glyphguard"]
# Default arguments (can override with docker run flags)
CMD ["-log", "/var/log/dns/queries.log", "-elk", "http://elk:9200/glyphguard/_doc/"]