Fix up dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Paul Brinkmeier 2023-01-19 02:43:34 +01:00
parent 09d3d8684c
commit 9cd3803b61
3 changed files with 9 additions and 4 deletions

View File

@ -14,7 +14,7 @@ FROM python:3.11-alpine
COPY glebby-server /glebby-server COPY glebby-server /glebby-server
WORKDIR /glebby-server WORKDIR /glebby-server
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
RUN pip install gunicorn RUN pip install hypercorn
COPY --from=frontend /glebby-client/static /glebby-server/static COPY --from=frontend /glebby-client/static /glebby-server/glebby/static
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--threads", "100", "glebby:app"] CMD ["hypercorn", "--bind", "0.0.0.0:5000", "glebby:app"]

View File

@ -1,5 +1,6 @@
- [ ] composition api - [ ] composition api
- [ ] quart - [x] quart
- [x] fix dockerfile
- [ ] lobby - [ ] lobby
- [ ] actual game logic - [ ] actual game logic
- [ ] websocket url config - [ ] websocket url config

View File

@ -12,6 +12,10 @@ async def send_outgoing(queue):
data = await queue.get() data = await queue.get()
await websocket.send(data) await websocket.send(data)
@app.route('/')
async def root():
return await app.send_static_file('index.html')
@app.websocket('/glebby') @app.websocket('/glebby')
async def ws(): async def ws():
global model global model