-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from prose-im/master
feat: dockerfile + auto-publish docker image
- Loading branch information
Showing
5 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM nginx:1.27-alpine-slim as web | ||
|
||
RUN rm -rf /etc/nginx/ /var/www/ | ||
|
||
COPY ./env/nginx /etc/nginx/ | ||
COPY ./build /var/www/ | ||
|
||
EXPOSE 8080/tcp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
types { | ||
text/html html; | ||
text/css css; | ||
text/xml xml; | ||
text/plain txt; | ||
|
||
application/javascript js; | ||
application/json json; | ||
|
||
image/jpeg jpeg jpg; | ||
image/gif gif; | ||
image/png png; | ||
image/svg+xml svg; | ||
image/webp webp; | ||
image/x-icon ico; | ||
|
||
audio/webm weba; | ||
|
||
font/woff woff; | ||
font/woff2 woff2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
worker_processes 1; | ||
error_log /dev/stdout info; | ||
|
||
events {} | ||
|
||
http { | ||
include mime.types; | ||
charset utf-8; | ||
access_log /dev/stdout; | ||
|
||
server { | ||
listen 8080; | ||
server_name localhost; | ||
|
||
include site.conf; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root /var/www/; | ||
|
||
error_page 404 /not_found/; | ||
|
||
location ~ ^/((favicon\.ico)|(favicon(-\d+x\d+)?\.png)) { | ||
rewrite ^/(.*) /static/user/favicons/$1 break; | ||
} | ||
|
||
expires 1h; |