Quellcode durchsuchen

shopping-service-client

xjg vor 3 Monaten
Ursprung
Commit
39c447ad37
5 geänderte Dateien mit 4 neuen und 35 gelöschten Zeilen
  1. 0 8
      .idea/.gitignore
  2. 0 9
      .idea/client.iml
  3. 0 8
      .idea/modules.xml
  4. 0 6
      .idea/vcs.xml
  5. 4 4
      Dockerfile

+ 0 - 8
.idea/.gitignore

@@ -1,8 +0,0 @@
-# 默认忽略的文件
-/shelf/
-/workspace.xml
-# 基于编辑器的 HTTP 客户端请求
-/httpRequests/
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml

+ 0 - 9
.idea/client.iml

@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="WEB_MODULE" version="4">
-  <component name="Go" enabled="true" />
-  <component name="NewModuleRootManager">
-    <content url="file://$MODULE_DIR$" />
-    <orderEntry type="inheritedJdk" />
-    <orderEntry type="sourceFolder" forTests="false" />
-  </component>
-</module>

+ 0 - 8
.idea/modules.xml

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="ProjectModuleManager">
-    <modules>
-      <module fileurl="file://$PROJECT_DIR$/.idea/client.iml" filepath="$PROJECT_DIR$/.idea/client.iml" />
-    </modules>
-  </component>
-</project>

+ 0 - 6
.idea/vcs.xml

@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
-  <component name="VcsDirectoryMappings">
-    <mapping directory="$PROJECT_DIR$" vcs="Git" />
-  </component>
-</project>

+ 4 - 4
Dockerfile

@@ -1,6 +1,6 @@
 FROM golang:1.19-alpine as builder
-WORKDIR /go/src/shopping-client/server
-COPY ../shopping-client-old .
+WORKDIR /go/src/shopping-service-client/server
+COPY . .
 
 RUN go env -w GO111MODULE=on    && go env -w GOPROXY=https://proxy.golang.org,direct    && go env -w CGO_ENABLED=0    && go env    && go mod tidy    && go build -o server .
 
@@ -11,8 +11,8 @@ LABEL MAINTAINER="sghblog@163.com"
 # 安装 tzdata 包
 RUN apk --no-cache add tzdata
 
-WORKDIR /go/src/shopping-client/server
-COPY --from=0 /go/src/shopping-client/server/server ./
+WORKDIR /go/src/shopping-service-client/server
+COPY --from=0 /go/src/shopping-service-client/server/server ./
 
 RUN apk add --no-cache curl