diff --git a/Dockerfile b/Dockerfile index fba037c87..607762c0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM elixir:1.13.4-alpine -RUN apk add --no-cache inotify-tools postgresql-client file make gcc libc-dev argon2 imagemagick cmake build-base libwebp-tools bash ncurses git python3 +RUN apk add --no-cache inotify-tools postgresql-client file make gcc libc-dev argon2 imagemagick cmake build-base libwebp-tools bash ncurses git python3 npm RUN mix local.hex --force && mix local.rebar --force diff --git a/vite.config.js b/vite.config.js index a45a3ba48..46bc61bc2 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,7 +3,7 @@ import { defineConfig } from "vite"; import path from "path"; import { VitePWA } from "vite-plugin-pwa"; import { visualizer } from "rollup-plugin-visualizer"; -import svgLoader from 'vite-svg-loader'; +import svgLoader from "vite-svg-loader"; export default defineConfig(({ command }) => { const isDev = command !== "build"; @@ -84,6 +84,9 @@ export default defineConfig(({ command }) => { return { plugins, build, + server: { + host: isDev ? "0.0.0.0" : "localhost", + }, resolve: { alias: { "@": path.resolve(__dirname, "./src"),