Browse Source
Merge pull request #546 from danditomaso/issue-545-nightly-docker-not-starting
Fixed Docker Builds Not Serving Site on 8080
pull/551/head
Dan Ditomaso
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with
61 additions and
14 deletions
-
.dockerignore
-
.github/workflows/nightly.yml
-
.github/workflows/release.yml
-
Containerfile
-
infra/.dockerignore
-
infra/Containerfile
-
infra/default.conf
|
|
|
@ -1,2 +0,0 @@ |
|
|
|
dist/build.tar |
|
|
|
dist/output |
|
|
|
@ -46,7 +46,7 @@ jobs: |
|
|
|
uses: redhat-actions/buildah-build@v2 |
|
|
|
with: |
|
|
|
containerfiles: | |
|
|
|
./Containerfile |
|
|
|
./infra/Containerfile |
|
|
|
image: ${{github.event.repository.full_name}} |
|
|
|
tags: nightly ${{ github.sha }} |
|
|
|
oci: true |
|
|
|
|
|
|
|
@ -46,7 +46,7 @@ jobs: |
|
|
|
uses: redhat-actions/buildah-build@v2 |
|
|
|
with: |
|
|
|
containerfiles: | |
|
|
|
./Containerfile |
|
|
|
./infra/Containerfile |
|
|
|
image: ${{github.event.repository.full_name}} |
|
|
|
tags: latest ${{ github.sha }} |
|
|
|
oci: true |
|
|
|
|
|
|
|
@ -1,10 +0,0 @@ |
|
|
|
FROM nginx:1.27.2-alpine |
|
|
|
|
|
|
|
RUN rm -r /usr/share/nginx/html \ |
|
|
|
&& mkdir /usr/share/nginx/html |
|
|
|
|
|
|
|
WORKDIR /usr/share/nginx/html |
|
|
|
|
|
|
|
ADD dist . |
|
|
|
|
|
|
|
CMD nginx -g "daemon off;" |
|
|
|
@ -0,0 +1,2 @@ |
|
|
|
../dist/build.tar |
|
|
|
../dist/output |
|
|
|
@ -0,0 +1,15 @@ |
|
|
|
FROM nginx:1.27-alpine |
|
|
|
|
|
|
|
RUN rm -r /usr/share/nginx/html \ |
|
|
|
&& mkdir -p /usr/share/nginx/html \ |
|
|
|
&& mkdir -p /etc/nginx/conf.d |
|
|
|
|
|
|
|
WORKDIR /usr/share/nginx/html |
|
|
|
|
|
|
|
ADD dist . |
|
|
|
|
|
|
|
COPY ./infra/default.conf /etc/nginx/conf.d/default.conf |
|
|
|
|
|
|
|
EXPOSE 8080 |
|
|
|
|
|
|
|
CMD ["nginx", "-g", "daemon off;"] |
|
|
|
@ -0,0 +1,42 @@ |
|
|
|
server { |
|
|
|
listen 8080; |
|
|
|
server_name localhost; |
|
|
|
|
|
|
|
root /usr/share/nginx/html; |
|
|
|
index index.html index.htm; |
|
|
|
|
|
|
|
location / { |
|
|
|
try_files $uri $uri/ =404; |
|
|
|
} |
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html; |
|
|
|
location = /50x.html { |
|
|
|
internal; |
|
|
|
} |
|
|
|
|
|
|
|
location ~ /\.ht { |
|
|
|
deny all; |
|
|
|
} |
|
|
|
|
|
|
|
gzip on; |
|
|
|
gzip_disable "msie6"; |
|
|
|
|
|
|
|
gzip_vary on; |
|
|
|
gzip_proxied any; |
|
|
|
gzip_comp_level 6; |
|
|
|
gzip_buffers 16 8k; |
|
|
|
gzip_http_version 1.1; |
|
|
|
gzip_types |
|
|
|
text/plain |
|
|
|
text/css |
|
|
|
text/xml |
|
|
|
text/javascript |
|
|
|
application/javascript |
|
|
|
application/x-javascript |
|
|
|
application/json |
|
|
|
application/xml |
|
|
|
application/xml+rss |
|
|
|
font/ttf |
|
|
|
font/otf |
|
|
|
image/svg+xml; |
|
|
|
} |