21 lines
1.1 KiB
Docker
21 lines
1.1 KiB
Docker
# Use the latest Alpine Linux image
|
|
FROM alpine:latest
|
|
|
|
# Install necessary packages including bash
|
|
RUN apk update && apk add --no-cache alpine-sdk squashfs-tools xorriso openssh wget bash p7zip
|
|
|
|
# Set environment variable for SSH public key (replace with your actual key)
|
|
ENV SSH_PUBLIC_KEY="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDsKFCdYNW+ShGM89hrN1lRBOeH7Am1DM3RuF5ODl9B3ZBJyL3qbixWipys3twNuHF8PxjRdE4OeXawY8w5U/FdYx9WtZ+/jfnpkIt85hzRP6wGm2Gb3YvYlukMoWRJTrPzY9B1wWZ0lUdwjryh6rsrIiuL/nYi4DMJWVfLLM5i8Pjzqq4rFT0hJDUg4I2cXspCec1YoRFKMKCqIGoduWpjhGm6P23fjz+8GXuB1DfhQcu3TkJF90tn3DUpiQ2BW4PreCtyTzcDdbhIo1O9x3abAeAkOnZtIK2DXdmbtgjCJg9yHgtjQQDV3WT0YkpHGsj3x9/xmhIr2Mcf18Ohjoo81hfL4raWAzGHrQFdc5bHop9M95iqp+0GbxGUhc4Wvy9iptuqfqclZdibOMGeX2vGJsqEkdwuWHpjtQ/12dGTGI9crRP+d/Nch+rc1Dz+cuLfDMuNcS0bqAk4eSeFbgsoOBqZeWcMG0m+ZKgyl4Q+uhBgUoHCoC4FHSJUnMfkKhs= root@868a158393be"
|
|
|
|
# Copy build script into container
|
|
COPY build-alpine.sh /build-alpine.sh
|
|
|
|
# Make the build script executable
|
|
RUN chmod +x /build-alpine.sh
|
|
|
|
# Create output directory
|
|
RUN mkdir /output
|
|
|
|
# Set the default command to run the build script using bash
|
|
CMD ["/bin/bash", "/build-alpine.sh"]
|