Skip to content

Commit 2b2cdb7

Browse files
committed
fix docker build
1 parent 6c89471 commit 2b2cdb7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ RUN set -x \
4141
&& cp -r /tmp/adminer/designs/ /tmp/adminer/plugins/ . \
4242
&& rm -rf /tmp/adminer/
4343

44+
RUN apt-get update && apt-get install -y sed && rm -rf /var/lib/apt/lists/*
45+
RUN sed -i "s/Listen 80/Listen ${PORT:-8080}/g" /etc/apache2/ports.conf
46+
4447
COPY entrypoint.sh /usr/local/bin/
4548
ENTRYPOINT [ "entrypoint.sh", "docker-php-entrypoint" ]
4649

4750
USER adminer
4851

49-
RUN sed -i "s/Listen 80/Listen ${PORT:-8080}/g" /etc/apache2/ports.conf
50-
5152
CMD ["apache2-foreground"]
5253

5354
EXPOSE 8080

0 commit comments

Comments
 (0)