Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3706348
D3848.id12001.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
D3848.id12001.diff
View Options
diff --git a/keyserver/Dockerfile b/keyserver/Dockerfile
--- a/keyserver/Dockerfile
+++ b/keyserver/Dockerfile
@@ -2,12 +2,24 @@
WORKDIR /app
+#-------------------------------------------------------------------------------
+# STEP 0: INSTALL PREREQS
+# Install prereqs first so we don't have to reinstall them if anything changes
+#-------------------------------------------------------------------------------
+
# We need python2 for a build script that the sqlite3 npm package uses
+# We use rsync in the prod-build yarn script
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
python2 \
+ rsync \
&& rm -rf /var/lib/apt/lists/*
RUN update-alternatives --install /usr/bin/python python /usr/bin/python2 2
+#-------------------------------------------------------------------------------
+# STEP 1: YARN CLEANINSTALL
+# We run yarn cleaninstall before copying most of the files in for build caching
+#-------------------------------------------------------------------------------
+
# Copy in package.json and yarn.lock files
COPY package.json yarn.lock .
COPY keyserver/package.json keyserver/.flowconfig keyserver/
@@ -21,5 +33,5 @@
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
+# Actually run yarn
RUN yarn cleaninstall
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 9, 12:18 AM (23 m, 3 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2824662
Default Alt Text
D3848.id12001.diff (1 KB)
Attached To
Mode
D3848: [keyserver] Add rsync to Dockerfile
Attached
Detach File
Event Timeline
Log In to Comment