(add): Some deployment files
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
*
|
||||
|
||||
!build/
|
||||
!package.json
|
||||
@@ -0,0 +1,9 @@
|
||||
FROM node:24-slim
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN npm install --omit=dev
|
||||
RUN mkdir -p /data
|
||||
ENV TAM_DATA_DIR=/data
|
||||
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
|
||||
ENV BODY_SIZE_LIMIT=Infinity
|
||||
CMD ["node", "build"]
|
||||
@@ -109,7 +109,9 @@
|
||||
class="{iS.normal} rounded file:bg-gray-300 file:border file:border-black file:px-2 file:py-1 file:rounded"
|
||||
bind:files={uploadFile}
|
||||
/>
|
||||
<button class={bS.gray} onclick={() => fileUpload('local')}>Upload to Local</button>
|
||||
{#if !remoteServer}
|
||||
<button class={bS.gray} onclick={() => fileUpload('local')}>Upload to Local</button>
|
||||
{/if}
|
||||
{#if remoteServer}
|
||||
<button class={bS.gray} onclick={() => fileUpload('remote')}>Upload to Remote</button>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user