diff options
| author | Louis Burda <quent.burda@gmail.com> | 2024-05-10 20:04:52 +0200 |
|---|---|---|
| committer | Louis Burda <quent.burda@gmail.com> | 2024-05-10 20:04:52 +0200 |
| commit | e63d07bbd413c7558784898e2d9c1be3851cd65a (patch) | |
| tree | e8792c0e1bb4f993475bf6857adc1ec95adb260d /chall/Dockerfile | |
| download | seccon2022-noiseccon-master.tar.gz seccon2022-noiseccon-master.zip | |
Diffstat (limited to 'chall/Dockerfile')
| -rw-r--r-- | chall/Dockerfile | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chall/Dockerfile b/chall/Dockerfile new file mode 100644 index 0000000..0f5f54e --- /dev/null +++ b/chall/Dockerfile @@ -0,0 +1,18 @@ +FROM node:18.10.0-slim + +ENV NODE_ENV=production + +RUN apt-get update && apt-get install -yq wget socat procps + +WORKDIR /app + +COPY ["package.json", "package-lock.json", "./"] + +# https://github.com/josephg/noisejs +RUN wget https://raw.githubusercontent.com/josephg/noisejs/master/perlin.js + +RUN npm install --omit=dev + +COPY index.js . + +CMD socat -T 30 TCP-L:1337,fork,reuseaddr EXEC:"node index.js" |
