mirror of
https://github.com/vegu-ai/talemate.git
synced 2025-12-16 19:57:47 +01:00
0.25.4 (#118)
* dont run npm install during container build * fix const var issue when ALLOWED_HOSTS is anything but `all` * ensure docker env sets NODE_ENV to development for now * 0.25.4 * dont mount frontend volume by default
This commit is contained in:
@@ -1,13 +1,19 @@
|
|||||||
# Use an official node runtime as a parent image
|
# Use an official node runtime as a parent image
|
||||||
FROM node:20
|
FROM node:20
|
||||||
|
|
||||||
|
# Make sure we are in a development environment (this isn't a production ready Dockerfile)
|
||||||
|
ENV NODE_ENV=development
|
||||||
|
|
||||||
|
# Echo that this isn't a production ready Dockerfile
|
||||||
|
RUN echo "This Dockerfile is not production ready. It is intended for development purposes only."
|
||||||
|
|
||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy the frontend directory contents into the container at /app
|
# Copy the frontend directory contents into the container at /app
|
||||||
COPY ./talemate_frontend /app
|
COPY ./talemate_frontend /app
|
||||||
|
|
||||||
# Install any needed packages specified in package.json
|
# Install all dependencies
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Make port 8080 available to the world outside this container
|
# Make port 8080 available to the world outside this container
|
||||||
|
|||||||
@@ -23,5 +23,5 @@ services:
|
|||||||
dockerfile: Dockerfile.frontend
|
dockerfile: Dockerfile.frontend
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:8080"
|
||||||
volumes:
|
#volumes:
|
||||||
- ./talemate_frontend:/app
|
# - ./talemate_frontend:/app
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
|
|||||||
|
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "talemate"
|
name = "talemate"
|
||||||
version = "0.25.3"
|
version = "0.25.4"
|
||||||
description = "AI-backed roleplay and narrative tools"
|
description = "AI-backed roleplay and narrative tools"
|
||||||
authors = ["FinalWombat"]
|
authors = ["FinalWombat"]
|
||||||
license = "GNU Affero General Public License v3.0"
|
license = "GNU Affero General Public License v3.0"
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ from .agents import Agent
|
|||||||
from .client import TextGeneratorWebuiClient
|
from .client import TextGeneratorWebuiClient
|
||||||
from .tale_mate import *
|
from .tale_mate import *
|
||||||
|
|
||||||
VERSION = "0.25.3"
|
VERSION = "0.25.4"
|
||||||
|
|||||||
4
talemate_frontend/package-lock.json
generated
4
talemate_frontend/package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "talemate_frontend",
|
"name": "talemate_frontend",
|
||||||
"version": "0.25.3",
|
"version": "0.25.4",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "talemate_frontend",
|
"name": "talemate_frontend",
|
||||||
"version": "0.25.3",
|
"version": "0.25.4",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/lang-markdown": "^6.2.5",
|
"@codemirror/lang-markdown": "^6.2.5",
|
||||||
"@codemirror/theme-one-dark": "^6.1.2",
|
"@codemirror/theme-one-dark": "^6.1.2",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "talemate_frontend",
|
"name": "talemate_frontend",
|
||||||
"version": "0.25.3",
|
"version": "0.25.4",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
|
|||||||
@@ -1,13 +1,9 @@
|
|||||||
const { defineConfig } = require('@vue/cli-service')
|
const { defineConfig } = require('@vue/cli-service')
|
||||||
|
|
||||||
const ALLOWED_HOSTS = process.env.ALLOWED_HOSTS || "all"
|
const ALLOWED_HOSTS = ((process.env.ALLOWED_HOSTS || "all") !== "all" ? process.env.ALLOWED_HOSTS.split(",") : "all")
|
||||||
const VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL = process.env.VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL || null
|
const VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL = process.env.VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL || null
|
||||||
|
|
||||||
// if ALLOWED_HOSTS is set and has , then split it
|
console.log("NODE_ENV", process.env.NODE_ENV)
|
||||||
if (ALLOWED_HOSTS !== "all") {
|
|
||||||
ALLOWED_HOSTS = ALLOWED_HOSTS.split(",")
|
|
||||||
}
|
|
||||||
|
|
||||||
console.log("ALLOWED_HOSTS", ALLOWED_HOSTS)
|
console.log("ALLOWED_HOSTS", ALLOWED_HOSTS)
|
||||||
console.log("VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL", VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL)
|
console.log("VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL", VUE_APP_TALEMATE_BACKEND_WEBSOCKET_URL)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user