forked from EngineerRandyN/idriveforlinux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (18 loc) · 820 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM --platform=linux/amd64/v3 ubuntu:latest
# Update, upgrade, and install dependencies.
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y curl cron libexpat1 expect vim
# Add missing libssl dependency.
ADD http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb /tmp/
RUN dpkg -i /tmp/libssl1.1_1.1.0g-2ubuntu4_amd64.deb
# Download idriveforlinux.bin file.
ADD https://www.idrivedownloads.com/downloads/linux/download-for-linux/linux-bin/idriveforlinux.bin /tmp/
RUN chmod a+x /tmp/idriveforlinux.bin
# Copy expect script for use in setup of the install.
COPY script.exp script.exp
RUN chmod a+x script.exp
# Entrypoint into entrypoint script.
COPY entrypoint.sh entrypoint.sh
RUN chmod a+x entrypoint.sh
ENTRYPOINT ["/bin/bash", "-c", "./entrypoint.sh"]