File tree Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Expand file tree Collapse file tree 2 files changed +25
-8
lines changed Original file line number Diff line number Diff line change 1
- FROM debian:stretch
1
+ FROM debian:12-slim
2
2
3
3
RUN \
4
4
apt-get update && \
@@ -18,5 +18,5 @@ ENV LASTMOD=$LASTMOD
18
18
19
19
ENV PORT=8080
20
20
21
- EXPOSE 80
21
+ EXPOSE 8080
22
22
CMD sed -i "s/80/$PORT/g" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf && /usr/sbin/apache2ctl -D FOREGROUND
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
+ #
3
+ # run via docker
4
+ #
5
+
6
+ set -o errexit
7
+ set -o pipefail
8
+ set -o nounset
9
+
10
+ APP_NAME=regexplanet-perl
11
+
12
+ docker build \
13
+ --build-arg COMMIT=$( git rev-parse --short HEAD) \
14
+ --build-arg LASTMOD=$( date -u +%Y-%m-%dT%H:%M:%SZ) \
15
+ --progress=plain \
16
+ --tag " ${APP_NAME} " \
17
+ .
2
18
3
- docker build -t regexplanet-perl .
4
19
docker run \
5
20
--hostname perl.regexplanet.com \
6
- --publish 4000:8080 \
21
+ --env PORT= 4000 \
7
22
--expose 4000 \
8
- --env PORT=' 8080' \
9
- --env COMMIT=$( git rev-parse --short HEAD) \
10
- --env LASTMOD=$( date -u +%Y-%m-%dT%H:%M:%SZ) \
23
+ --interactive \
11
24
--mount type=bind,source=" $( pwd) " /www,destination=/var/www \
12
- regexplanet-perl
25
+ --name " ${APP_NAME} " \
26
+ --publish 4000:4000 \
27
+ --rm \
28
+ --tty \
29
+ " ${APP_NAME} "
You can’t perform that action at this time.
0 commit comments