diff --git a/sample.config.json b/config.json.sample similarity index 100% rename from sample.config.json rename to config.json.sample diff --git a/dockerfile b/dockerfile index 9ef1779..1504e93 100644 --- a/dockerfile +++ b/dockerfile @@ -9,6 +9,11 @@ COPY . . ENV NODE_ENV production +ENV TITLE "My Website" + EXPOSE 4173 +RUN sed -i -e 's/HTMLTITLE/'"${TITLE}"'/g' ./index.html +RUN sed -i -e 's/HTMLTITLE/'"${TITLE}"'/g' ./src/main.tsx + CMD ["npm", "run", "start"] \ No newline at end of file diff --git a/index.html b/index.html index 3449dd4..b89f7e4 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@
-