Spaces:
Running
on
A10G
Running
on
A10G
GitLab CI
commited on
Commit
·
5813146
1
Parent(s):
ad36f02
Update game build from GitLab CI
Browse files- Dockerfile +2 -6
- server/ActionProcessor.py +5 -0
- server/static/godot/index.pck +0 -0
Dockerfile
CHANGED
@@ -46,17 +46,13 @@ RUN poetry install --only main --no-interaction --no-ansi --no-root
|
|
46 |
|
47 |
# Create static directory and set permissions
|
48 |
RUN mkdir -p /app/server/static && \
|
49 |
-
chown -R appuser:appuser /app
|
50 |
-
# Verify the static files are present
|
51 |
-
ls -la /app/server/static
|
52 |
|
53 |
# Switch to non-root user
|
54 |
USER appuser
|
55 |
|
56 |
# Verify permissions after user switch
|
57 |
-
RUN
|
58 |
-
mkdir -p ~/static && \
|
59 |
-
ls -la ~/static
|
60 |
|
61 |
# Exposer le port utilisé par Flask
|
62 |
EXPOSE 7860
|
|
|
46 |
|
47 |
# Create static directory and set permissions
|
48 |
RUN mkdir -p /app/server/static && \
|
49 |
+
chown -R appuser:appuser /app
|
|
|
|
|
50 |
|
51 |
# Switch to non-root user
|
52 |
USER appuser
|
53 |
|
54 |
# Verify permissions after user switch
|
55 |
+
RUN mkdir -p ~/static
|
|
|
|
|
56 |
|
57 |
# Exposer le port utilisé par Flask
|
58 |
EXPOSE 7860
|
server/ActionProcessor.py
CHANGED
@@ -43,6 +43,11 @@ class ActionProcessor(Thread):
|
|
43 |
r"(?i)\b(don't do that)\b": "stop",
|
44 |
}
|
45 |
|
|
|
|
|
|
|
|
|
|
|
46 |
# Check each pattern
|
47 |
for pattern, action_type in command_patterns.items():
|
48 |
match = re.search(pattern, text.lower())
|
|
|
43 |
r"(?i)\b(don't do that)\b": "stop",
|
44 |
}
|
45 |
|
46 |
+
# TODO: Remove this test thing
|
47 |
+
if len(text) <= 3:
|
48 |
+
return None
|
49 |
+
return {"type": text}
|
50 |
+
|
51 |
# Check each pattern
|
52 |
for pattern, action_type in command_patterns.items():
|
53 |
match = re.search(pattern, text.lower())
|
server/static/godot/index.pck
CHANGED
Binary files a/server/static/godot/index.pck and b/server/static/godot/index.pck differ
|
|