Dockerfile Example

The following is an example of a Dockerfile used to build a custom image.

# Use the official base image
FROM ubuntu:20.04

# Set environment variables
ENV LANG=C.UTF-8
ENV LANGUAGE=C.UTF-8
ENV LC_CTYPE=UTF-8
ENV LC_COLLATE=UTF-8
ENV LC_NUMERIC=C
ENV LC_TIME=C
ENV LC_MESSAGES=C
ENV LC_PAPER=C
ENV LC_DESKTOP=C
ENV LC_ADDRESS=C
ENV LC_MONOCHROME=C
ENV LC_ICONV=C

# Update package lists
RUN apt-get update && apt-get upgrade -y

# Install necessary packages
RUN apt-get install -y openssh-server

# Create a simple SSH server
RUN echo "root:x12345678" | chpasswd

# Expose port 22 for SSH
EXPOSE 22

# Run command to start the SSH daemon
CMD ["service", "ssh", "start"]
        
Note: This Dockerfile is a basic example and may require additional configuration depending on your needs.