Spaces:
Build error
Build error
Commit
·
bd2fd97
1
Parent(s):
1c9549c
Update Dockerfile
Browse files- Dockerfile +1 -59
Dockerfile
CHANGED
@@ -18,71 +18,13 @@
|
|
18 |
# VERSION 0.0.1
|
19 |
|
20 |
# Pull base image.
|
21 |
-
FROM
|
22 |
LABEL Francois Lacroix <[email protected]>
|
23 |
|
24 |
-
# Setup system and install tools
|
25 |
-
#RUN echo "initscripts hold" | dpkg --set-selections
|
26 |
-
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
27 |
-
RUN echo 'alias ll="ls -lah --color=auto"' >> /etc/bash.bashrc
|
28 |
-
|
29 |
-
# Make sure the package repository is up to date
|
30 |
-
RUN apt-get update && apt-get -yq upgrade
|
31 |
-
|
32 |
-
# Set locale
|
33 |
-
RUN apt-get -qqy install locales
|
34 |
-
#RUN locale-gen --purge en_US en_US.UTF-8
|
35 |
-
#RUN dpkg-reconfigure locales
|
36 |
-
RUN localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
|
37 |
-
ENV LANG en_US.utf8
|
38 |
-
ENV LC_ALL en_US.UTF-8
|
39 |
-
|
40 |
-
# Set ENV
|
41 |
-
ENV HOME /root
|
42 |
-
ENV DEBIAN_FRONTEND noninteractive
|
43 |
-
|
44 |
-
# Install SSH
|
45 |
-
RUN apt-get install -y openssh-server
|
46 |
-
RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
|
47 |
-
RUN sed -ri 's/#UsePAM no/UsePAM no/g' /etc/ssh/sshd_config
|
48 |
-
RUN sed 's/#PermitRootLogin yes/PermitRootLogin yes/' -i /etc/ssh/sshd_config
|
49 |
-
RUN sed 's/PermitRootLogin without-password/PermitRootLogin yes/' -i /etc/ssh/sshd_config
|
50 |
-
RUN mkdir /var/run/sshd
|
51 |
-
RUN echo 'root:admin' | chpasswd
|
52 |
-
|
53 |
-
# Add the install script in the directory.
|
54 |
-
ADD install.sh /tmp/install.sh
|
55 |
-
RUN chmod +x /tmp/install.sh
|
56 |
-
#ADD . /app
|
57 |
-
|
58 |
-
# Install it all
|
59 |
-
RUN \
|
60 |
-
bash /tmp/install.sh
|
61 |
-
|
62 |
-
# Define environment variables
|
63 |
ENV PORT 80
|
64 |
|
65 |
-
# Define working directory.
|
66 |
-
WORKDIR /var/www/ipxe-buildweb
|
67 |
-
|
68 |
-
# Define default command.
|
69 |
-
# Start ssh and other services.
|
70 |
-
#CMD ["/bin/bash", "/tmp/install.sh"]
|
71 |
|
72 |
# Expose ports.
|
73 |
EXPOSE 80
|
74 |
|
75 |
-
# Clean up APT when done.
|
76 |
-
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
77 |
-
|
78 |
-
# Make sure the package repository is up to date
|
79 |
-
ONBUILD apt-get update && apt-get -yq upgrade
|
80 |
-
ONBUILD apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
81 |
-
|
82 |
-
# Allow to execute
|
83 |
-
RUN chmod +x /opt/rom-o-matic/start.sh
|
84 |
-
RUN chmod +x /opt/rom-o-matic/update.sh
|
85 |
-
|
86 |
-
#RUN /etc/init.d/apache2 start
|
87 |
-
#ENTRYPOINT ["/usr/bin/tail","-f","/var/log/apache2/access.log"]
|
88 |
ENTRYPOINT ["/opt/rom-o-matic/start.sh"]
|
|
|
18 |
# VERSION 0.0.1
|
19 |
|
20 |
# Pull base image.
|
21 |
+
FROM mediocreatmybest/ipxe-buildweb:latest
|
22 |
LABEL Francois Lacroix <[email protected]>
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
ENV PORT 80
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
|
27 |
# Expose ports.
|
28 |
EXPOSE 80
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
ENTRYPOINT ["/opt/rom-o-matic/start.sh"]
|