Skip to content

Commit 1320d1c

Browse files
authored
fix: multi-stage (#49)
1 parent 36ccf75 commit 1320d1c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/dockerimage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
docker volume create usr-share-geoip
4040
docker run --rm --name geoipupdate -v usr-share-geoip:/usr/share/GeoIP -e GEOIPUPDATE_FREQUENCY=0 -e GEOIPUPDATE_ACCOUNT_ID='${{ secrets.GEOIPUPDATE_ACCOUNT_ID }}' -e GEOIPUPDATE_LICENSE_KEY='${{ secrets.GEOIPUPDATE_LICENSE_KEY }}' -e GEOIPUPDATE_EDITION_IDS='GeoLite2-City GeoLite2-Country' maxmindinc/geoipupdate
4141
docker run --rm --name nginx gokaygurcan/nginx nginx -V
42-
42+
4343
- id: login
4444
name: Login to Docker Hub
4545
uses: docker/login-action@v3

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ RUN set -ex && \
159159
echo "✓" | tee /usr/local/nginx/html/index.html && \
160160
# Diffie-Hellman
161161
openssl dhparam -dsaparam -out /etc/nginx/dhparam.pem 4096 && \
162+
# configure dynamic linker run-time bindings
163+
ldconfig -v && \
162164
# clean up
163165
rm /etc/nginx/*.default && \
164166
apt-get autoclean -yqq && \
@@ -176,6 +178,8 @@ FROM gokaygurcan/ubuntu:latest
176178
LABEL maintainer "Gökay Gürcan <[email protected]>"
177179

178180
COPY --from=build-nginx /etc/nginx /etc/nginx
181+
COPY --from=build-nginx /usr/lib /usr/lib
182+
COPY --from=build-nginx /usr/local/lib /usr/local/lib
179183
COPY --from=build-nginx /usr/local/nginx /usr/local/nginx
180184
COPY --from=build-nginx /var/log/nginx /var/log/nginx
181185
COPY --from=build-nginx /usr/sbin/nginx /usr/sbin/nginx

0 commit comments

Comments
 (0)