Skip to content

Commit

Permalink
fix: missing workdir settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Oct 23, 2024
1 parent d455e29 commit eab2d1b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
2 changes: 2 additions & 0 deletions docker/local/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ FROM ubuntu:22.04

COPY --from=builder /app/main /app/main

WORKDIR /app

# Install python3.10
RUN apt-get update && apt-get install -y python3.10 python3.10-venv python3.10-dev \
&& apt-get clean \
Expand Down
2 changes: 2 additions & 0 deletions docker/serverless/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ FROM alpine:latest

COPY --from=builder /app/main /app/main

WORKDIR /app

ENV PLATFORM=aws_lambda
ENV GIN_MODE=release

Expand Down
14 changes: 6 additions & 8 deletions internal/core/dify_invocation/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package dify_invocation

import (
"github.com/go-playground/validator/v10"
"github.com/langgenius/dify-plugin-daemon/internal/types/entities/app_entities"
"github.com/langgenius/dify-plugin-daemon/internal/types/entities/plugin_entities"
"github.com/langgenius/dify-plugin-daemon/internal/types/entities/requests"
"github.com/langgenius/dify-plugin-daemon/internal/types/validators"
Expand Down Expand Up @@ -69,13 +68,12 @@ type InvokeModerationRequest struct {
}

type InvokeAppSchema struct {
AppId string `json:"app_id" validate:"required"`
Inputs map[string]any `json:"inputs" validate:"omitempty"`
Query string `json:"query" validate:"omitempty"`
ResponseMode string `json:"response_mode"`
ConversationId string `json:"conversation_id"`
User string `json:"user" validate:"omitempty"`
Files []*app_entities.FileVar `json:"files" validate:"omitempty,dive"`
AppId string `json:"app_id" validate:"required"`
Inputs map[string]any `json:"inputs" validate:"omitempty"`
Query string `json:"query" validate:"omitempty"`
ResponseMode string `json:"response_mode"`
ConversationId string `json:"conversation_id"`
User string `json:"user" validate:"omitempty"`
}

type StorageOpt string
Expand Down
5 changes: 0 additions & 5 deletions internal/types/entities/app_entities/file.go

This file was deleted.

0 comments on commit eab2d1b

Please sign in to comment.