Skip to content

Commit

Permalink
Merge pull request #34 from honeynet/RicYaben-patch-2
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
RicYaben authored Sep 27, 2023
2 parents 4f4d7b4 + 0e6bb57 commit 7247a26
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions build/docker/service/custom_sshd/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
FROM ubuntu
FROM alpine:latest

# Install OpenSSH
RUN apt-get update && apt-get install -y openssh-server

# Install OpenSSH server
RUN apt-get update && apt-get install -y openssh-server

# Copy the SSH public key to the container's root directory
RUN mkdir -p /root/.ssh
COPY keys/riotpot_ed25519.pub /root/.ssh/authorized_keys

# Set up SSH configuration
RUN mkdir /var/run/sshd
RUN apk add --no-cache --update openssh

# Add non-root users and set passwords
COPY ssh_users.txt /tmp/ssh_users.txt
Expand Down

0 comments on commit 7247a26

Please sign in to comment.