Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3113800
D3713.id11622.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3713.id11622.diff
View Options
diff --git a/keyserver/Dockerfile b/keyserver/Dockerfile
new file mode 100644
--- /dev/null
+++ b/keyserver/Dockerfile
@@ -0,0 +1,25 @@
+FROM node:16.13-bullseye
+
+WORKDIR /app
+
+# We need python2 for a build script that the sqlite3 npm package uses
+RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
+ python2 \
+ && rm -rf /var/lib/apt/lists/*
+RUN update-alternatives --install /usr/bin/python python /usr/bin/python2 2
+
+# Copy in package.json and yarn.lock files
+COPY package.json yarn.lock .
+COPY keyserver/package.json keyserver/.flowconfig keyserver/
+COPY lib/package.json lib/.flowconfig lib/
+COPY web/package.json web/.flowconfig web/
+COPY native/package.json native/.flowconfig native/
+COPY landing/package.json landing/.flowconfig landing/
+
+# Copy in files needed for patch-package and pod-patch
+COPY patches patches/
+COPY native/ios/pod-patch native/ios/pod-patch/
+COPY native/ios/Podfile native/ios/
+
+# We run yarn cleaninstall before copying most of the files in for build caching
+RUN yarn cleaninstall
diff --git a/keyserver/docker-compose.yml b/keyserver/docker-compose.yml
new file mode 100644
--- /dev/null
+++ b/keyserver/docker-compose.yml
@@ -0,0 +1,10 @@
+version: "3.9"
+services:
+ node:
+ build:
+ dockerfile: keyserver/Dockerfile
+ context: ../
+ image: commapp/node-keyserver:1.0
+ container_name: node-keyserver
+ ports:
+ - "3000:3000"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 1, 7:22 PM (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2399485
Default Alt Text
D3713.id11622.diff (1 KB)
Attached To
Mode
D3713: yarn cleaninstall from Docker image
Attached
Detach File
Event Timeline
Log In to Comment