Skip to content

Commit 37baf25

Browse files
committed
Update to debian 12-slim
1 parent 52d430d commit 37baf25

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:stretch
1+
FROM debian:12-slim
22

33
RUN \
44
apt-get update && \
@@ -18,5 +18,5 @@ ENV LASTMOD=$LASTMOD
1818

1919
ENV PORT=8080
2020

21-
EXPOSE 80
21+
EXPOSE 8080
2222
CMD sed -i "s/80/$PORT/g" /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf && /usr/sbin/apache2ctl -D FOREGROUND

run.sh

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,29 @@
11
#!/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+
.
218

3-
docker build -t regexplanet-perl .
419
docker run \
520
--hostname perl.regexplanet.com \
6-
--publish 4000:8080 \
21+
--env PORT=4000 \
722
--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 \
1124
--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}"

0 commit comments

Comments
 (0)