ssh-bot/Dockerfile
Ari Archer 4379d52230
init
Signed-off-by: Ari Archer <ari@ari.lt>
2024-04-29 23:01:45 +03:00

15 lines
347 B
Docker

FROM node:20-slim
RUN apt-get update && apt-get install -y ssh
COPY package*.json /tmp/
RUN cd /tmp && npm install
RUN mkdir -p /opt/app && cp -a /tmp/node_modules /opt/app/
WORKDIR /opt/app
COPY . /opt/app
RUN mkdir -p /root/.ssh/
RUN ssh-keygen -t ed25519 -b 4096 -C "ssh@localhost" -N "" -f /root/.ssh/id_ed25519
CMD ["npm", "run", "bot"]