-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (40 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM ubuntu
RUN apt-get update
RUN apt-get install -y python
RUN echo 1.0 >> /etc/version && apt-get install -y git \
&& apt-get install -y iputils-ping
RUN mkdir /datos
WORKDIR /datos
RUN touch f1.txt
RUN mkdir /datos1
WORKDIR /datos1
RUN touch f2.txt
## COPY ##
COPY index.html .
copy app.log /datos
## ADD ##
ADD docs docs
ADD f*.* /datos/
ADD my_archive.tar .
## ENTRYPOINT ##
## ENV ##
ENV dir=/data dir1=/data1
RUN mkdir $dir && mkdir $dir1
ENV DEBIAN_FRONTEND=noninteractive
## ARG ##
#ARG dir2
#RUN mkdir $dir2
#ARG user
#ENV user_docker $user
#ADD add_user.sh /datos1
#RUN /datos1/add_user.sh
## EXPOSE ##
RUN apt-get install -y apache2
EXPOSE 80
ADD entrypoint.sh /datos1
## VOLUME ##
ADD paginas /var/www/html
VOLUME ["/var/www/html"]
## CMD ##
CMD /datos1/entrypoint.sh
#ENTRYPOINT ["/bin/bash"]