added web export and docker files
This commit is contained in:
1 parent
fc18e56b3f
commit
2d2bed4ace
4 files changed
+87
No files matched your search
@@ -0,0 +1,20 @@
|
||||
FROM barichello/godot-ci:4.6.2 AS builder
|
||||
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
|
||||
RUN mkdir -p /build
|
||||
|
||||
RUN godot --headless --verbose --export-release "Web" "/build/index.html"
|
||||
|
||||
|
||||
FROM nginx:1.30.0
|
||||
|
||||
COPY docker/nginx.conf /etc/nginx/default.conf
|
||||
|
||||
COPY --from=builder /build /usr/share/nginx/html
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
add_header Cross-Origin-Embedder-Policy 'require-corp';
|
||||
add_header Cross-Origin-Opener-Policy 'same-origin';
|
||||
|
||||
location / {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html index.htm;
|
||||
try_files $uri $uri/ =404;
|
||||
|
||||
types {
|
||||
application/wasm wasm;
|
||||
text/html html;
|
||||
application/javascript js;
|
||||
text/css css;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user