diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..267ee0f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +FROM node:18 + +WORKDIR /app + +# COPY package.json and package-lock.json files +COPY package*.json ./ + +COPY vite.config.js ./ + +# COPY tsconfig.json file +COPY jsconfig.json ./ + +# COPY +COPY . . + +RUN npm install + +RUN npm run build + +RUN [ "chmod", "+x", "/app/start.sh"] + +EXPOSE 3000 + +CMD [ "/app/start.sh" ] diff --git a/captain-definition b/captain-definition new file mode 100644 index 0000000..ff979d2 --- /dev/null +++ b/captain-definition @@ -0,0 +1,4 @@ +{ + "schemaVersion": 2, + "dockerfilePath": "./Dockerfile" +} diff --git a/src/lib/preview/Preview.svelte b/src/lib/preview/Preview.svelte index 08c9d44..f2252ac 100644 --- a/src/lib/preview/Preview.svelte +++ b/src/lib/preview/Preview.svelte @@ -1,145 +1,157 @@
-
-
{$heading}
-
{$title}
-
{$subtitle}
-
{@html $content}
- {#if newdate}
{newdate.date}
{/if} - {#if newdate}
{newdate.time}
{/if} -
{$address}
-
+
+
{$heading}
+
{$title}
+
{$subtitle}
+
{@html $content}
+ {#if newdate}
{newdate.date}
{/if} + {#if newdate}
{newdate.time}
{/if} +
{$address}
+
+