Skip to content

Commit f1f33de

Browse files
authored
chore: Update docker, Minor Styling fix (#528)
* chore(docker): add .env and **/.env to .dockerignore refactor(docker): remove unnecessary .env file copy and removal in Dockerfile * style(AgentSettings): adjust Switch placement fix(EditPresetDialog): correctly show functions setting in preset
1 parent 9778e73 commit f1f33de

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
**/node_modules
22
client/dist/images
33
data-node
4+
.env
5+
**/.env

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Base node image
22
FROM node:19-alpine AS node
33
COPY . /app
4-
# Copy .env file
5-
COPY .env .env
64
# Install dependencies
75
WORKDIR /app
86
RUN npm ci
@@ -11,9 +9,6 @@ RUN npm ci
119
ENV NODE_OPTIONS="--max-old-space-size=2048"
1210
RUN npm run frontend
1311

14-
# Remove .env file after build
15-
RUN rm .env
16-
1712
# Node API setup
1813
EXPOSE 3080
1914
ENV HOST=0.0.0.0

client/src/components/Endpoints/EditPresetDialog.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ const EditPresetDialog = ({ open, onOpenChange, preset: _preset, title }) => {
238238
)}
239239
{preset?.endpoint === 'gptPlugins' && showAgentSettings && (
240240
<AgentSettings
241-
agent={preset.agent}
241+
agent={preset.agentOptions.agent}
242242
skipCompletion={preset.agentOptions.skipCompletion}
243243
model={preset.agentOptions.model}
244244
endpoint={preset.agentOptions.endpoint}

client/src/components/Endpoints/Plugins/AgentSettings.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function Settings(props) {
6565
</div>
6666
<div className="grid w-full items-center gap-2 grid-cols-2">
6767
<HoverCard openDelay={500}>
68-
<HoverCardTrigger className='w-1/2'>
68+
<HoverCardTrigger className='w-[100px]'>
6969
<label
7070
htmlFor="functions-agent"
7171
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-50"
@@ -77,7 +77,7 @@ function Settings(props) {
7777
<OptionHover type="func" side="right" />
7878
</HoverCard>
7979
<HoverCard openDelay={500}>
80-
<HoverCardTrigger className='w-1/2 ml-[-60px]'>
80+
<HoverCardTrigger className='w-[100px] ml-[-60px]'>
8181
<label
8282
htmlFor="skip-completion"
8383
className="text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 dark:text-gray-50"

0 commit comments

Comments
 (0)