commit ddf452b92f2e773c23be33fe15bea06f49b5ff41
| author | 斟酌 鵬兄 <tgckpg@gmail.com> |
| date | 2026-03-10T07:28:49Z |
| subject | Fixed docker build |
commit ddf452b92f2e773c23be33fe15bea06f49b5ff41
Author: 斟酌 鵬兄 <tgckpg@gmail.com>
Date: 2026-03-10T07:28:49Z
Fixed docker build
---
.gitignore | 1 -
Dockerfile | 1 +
cmd/po-build.sh | 2 +-
resources/po/zh-Hant/messages.po | 2 +-
resources/pot/messages.pot | 2 +-
5 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/.gitignore b/.gitignore
index d52b31e..9da3372 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
.DS_Store
-./golifehk
*.csv
*.json
*.swp
diff --git a/Dockerfile b/Dockerfile
index 27b5ee7..3ea3eae 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,6 +7,7 @@ COPY [ "go.mod", "go.sum", "./" ]
RUN go mod download
COPY "datasources" "./datasources/"
+COPY "resources/langpacks" "./resources/langpacks/"
COPY "adaptors" "./adaptors/"
COPY "utils" "./utils/"
COPY "query" "./query/"
diff --git a/cmd/po-build.sh b/cmd/po-build.sh
index de38e2b..1e40c24 100755
--- a/cmd/po-build.sh
+++ b/cmd/po-build.sh
@@ -3,7 +3,7 @@
RES_ROOT=./resources
# Primary language
-cp -r "$RES_ROOT/src" "$RES_ROOT/langpacks/en"
+cp -r "$RES_ROOT/src/*" "$RES_ROOT/langpacks/en/"
# zh-Hant
po2json -t "$RES_ROOT/src/" "$RES_ROOT/po/zh-Hant" "$RES_ROOT/langpacks/zh-Hant"
diff --git a/resources/po/zh-Hant/messages.po b/resources/po/zh-Hant/messages.po
index 955691a..a215d37 100644
--- a/resources/po/zh-Hant/messages.po
+++ b/resources/po/zh-Hant/messages.po
@@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2026-03-10 15:02+0800\n"
+"POT-Creation-Date: 2026-03-10 15:23+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
diff --git a/resources/pot/messages.pot b/resources/pot/messages.pot
index 4bc56de..64f12c8 100644
--- a/resources/pot/messages.pot
+++ b/resources/pot/messages.pot
@@ -4,7 +4,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2026-03-10 15:02+0800\n"
+"POT-Creation-Date: 2026-03-10 15:23+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"