diff --git a/Dockerfile b/Dockerfile new file mode 100755 index 00000000..ab11a5ad --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +# Use an official Node.js runtime as a parent image +FROM node:20 + +# Set the working directory to /admin_ui +WORKDIR /admin_ui + +# Copy the current directory contents into the container at /admin_ui +COPY admin_ui . + +# Install any needed packages specified in package.json +RUN npm install --no-audit --no-fund + +# Expose port 3000 +EXPOSE 3000 + +# Run npm run dev when the container launches +CMD ["npm", "run", "dev"] \ No newline at end of file diff --git a/admin_ui/vite.config.ts b/admin_ui/vite.config.ts old mode 100644 new mode 100755 index 9c0f5f9c..2b726c57 --- a/admin_ui/vite.config.ts +++ b/admin_ui/vite.config.ts @@ -17,7 +17,7 @@ export default defineConfig({ emptyOutDir: true }, server: { - host: "127.0.0.1", + host: "0.0.0.0", port: 3000, proxy: { "^/api": {