20 lines
337 B
Docker
20 lines
337 B
Docker
FROM alpine:3.21.0
|
|
|
|
# hadolint ignore=DL3018
|
|
RUN apk add --no-cache \
|
|
git \
|
|
openssh-client \
|
|
iputils-ping \
|
|
bash \
|
|
&& mkdir /app
|
|
|
|
# Copy the script into the container
|
|
COPY app.sh /app/app.sh
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# Make the script executable
|
|
RUN chmod +x /app/app.sh
|
|
|
|
CMD ["bash", "/app/app.sh"]
|