From baad36f2f0f13f16b5146ad65a03fc13a16d86da Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751NSS@gmail.com> Date: Fri, 1 Nov 2024 16:07:31 +0800 Subject: [PATCH] feat: add dockerignore --- .dockerignore | 82 +++++++++++++++++++++++++++++++ build/images/voiceflow/Dockerfile | 3 -- go.mod | 1 - 3 files changed, 82 insertions(+), 4 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..5b2c71a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,82 @@ +# Temporary files +_output/ +*.log +*.tmp +*.temp + +# Version control +.git/ +.gitignore +.gitattributes +.github/ + +# Documentation +*.md +docs/ +CONTRIBUTING.md +LICENSE +OWNERS +CODEOWNERS + +# Development and build files +Makefile +*.Makefile +*.mk +.vscode/ +.idea/ +*.swp +*.swo +*.swn +*.bak + +# Test files +test/ +*_test.go +*.test + +# Configuration and environment files +.env +*.env +*.yaml +*.yml +!configs/config.yaml + +# Tools and dependencies +vendor/ +node_modules/ +tools/ +scripts/ + +# Debug files +*.pprof +*.prof +*.trace + +# Binary files +*.exe +*.dll +*.so +*.dylib + +# Project specific +assets/ +examples/ +third_party/ +init/ +sweep.yaml + +# Logs +*.log +logs/ +log/ + +# Web development files +*.css +*.js +*.html +web/ + +# macOS system files +.DS_Store +.AppleDouble +.LSOverride \ No newline at end of file diff --git a/build/images/voiceflow/Dockerfile b/build/images/voiceflow/Dockerfile index 2e64c84..c6f0f2b 100644 --- a/build/images/voiceflow/Dockerfile +++ b/build/images/voiceflow/Dockerfile @@ -15,9 +15,6 @@ WORKDIR /telepace/app ENV GO111MODULE=$GO111MODULE ENV GOPROXY=$GOPROXY -COPY go.mod go.sum ./ -RUN go mod download - COPY . . RUN make build BINS=voiceflow diff --git a/go.mod b/go.mod index ae337a1..80914f1 100644 --- a/go.mod +++ b/go.mod @@ -54,5 +54,4 @@ require ( golang.org/x/text v0.19.0 // indirect gopkg.in/ini.v1 v1.67.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect - nhooyr.io/websocket v1.8.7 // indirect )