Skip to content

Commit 0aaf28f

Browse files
committed
Add Dockerfile
1 parent 45db5aa commit 0aaf28f

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM ubuntu:24.04
2+
3+
RUN apt-get update && apt-get install -y \
4+
build-essential \
5+
spawn-fcgi \
6+
fcgiwrap \
7+
curl \
8+
g++ \
9+
make \
10+
libfcgi-dev \
11+
libfcgi++-dev \
12+
p7zip-full
13+
14+
WORKDIR /app
15+
16+
COPY . /app
17+
18+
RUN curl -L https://github.com/glacier-modding/Hitman-Hashes/releases/latest/download/latest-hashes.7z -o latest-hashes.7z && \
19+
7z x latest-hashes.7z -y && \
20+
rm -rf latest-hashes.7z
21+
22+
RUN g++ hashsearch.cpp -lfcgi++ -lfcgi -O2 -o hashsearch
23+
24+
EXPOSE 8000
25+
26+
CMD ["spawn-fcgi", "-p", "8000", "./hashsearch", "-n"]

hashsearch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <stdint.h>
1212
#include "json.hpp"
1313

14-
std::string hash_list_file_path = "/etc/hashsearch/hash_list.txt";
14+
std::string hash_list_file_path = "hash_list.txt";
1515

1616
std::string hash_list_string;
1717
int hash_list_version;

0 commit comments

Comments
 (0)