Janady07 commited on
Commit
e388c99
·
verified ·
1 Parent(s): 3643cca

Use maddie binary (no CGO)

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. Dockerfile +2 -8
  3. README.md +0 -1
  4. maddie +3 -0
  5. start.sh +2 -2
.gitattributes CHANGED
@@ -35,3 +35,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  megamind filter=lfs diff=lfs merge=lfs -text
37
  brain filter=lfs diff=lfs merge=lfs -text
 
 
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  megamind filter=lfs diff=lfs merge=lfs -text
37
  brain filter=lfs diff=lfs merge=lfs -text
38
+ maddie filter=lfs diff=lfs merge=lfs -text
Dockerfile CHANGED
@@ -1,18 +1,12 @@
1
  FROM python:3.11-slim
2
-
3
  RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/*
4
-
5
  RUN useradd -m -u 1000 megamind
6
  WORKDIR /app
7
  RUN mkdir -p /app/data && chown -R megamind:megamind /app
8
-
9
- COPY brain /app/brain
10
  COPY start.sh /app/start.sh
11
- RUN chmod +x /app/brain /app/start.sh
12
-
13
  USER megamind
14
  EXPOSE 7860
15
-
16
  HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 CMD curl -sf http://localhost:7860/health || exit 1
17
-
18
  CMD ["/app/start.sh"]
 
1
  FROM python:3.11-slim
 
2
  RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/*
 
3
  RUN useradd -m -u 1000 megamind
4
  WORKDIR /app
5
  RUN mkdir -p /app/data && chown -R megamind:megamind /app
6
+ COPY maddie /app/maddie
 
7
  COPY start.sh /app/start.sh
8
+ RUN chmod +x /app/maddie /app/start.sh
 
9
  USER megamind
10
  EXPOSE 7860
 
11
  HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 CMD curl -sf http://localhost:7860/health || exit 1
 
12
  CMD ["/app/start.sh"]
README.md CHANGED
@@ -8,4 +8,3 @@ pinned: false
8
  ---
9
 
10
  # MEGAMIND FORGE
11
- Specialty: creation and fabrication
 
8
  ---
9
 
10
  # MEGAMIND FORGE
 
maddie ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1644f8496cc679919a5095123d98e4dbf87f3882ccc5405d714273cdf1a0de1d
3
+ size 15827128
start.sh CHANGED
@@ -1,3 +1,3 @@
1
- #!/bin/sh
2
  cd /app
3
- exec /app/brain -port 7860 -data /app/data -logtostderr
 
1
+ #\!/bin/sh
2
  cd /app
3
+ exec /app/maddie -port 7860 -data /app/data