diff options
author | Eric Bailey <git@esb.lol> | 2025-03-14 12:08:19 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-14 12:08:19 -0500 |
commit | 5bff031e725b8249f3f69a26055d462cd1cd6fdd (patch) | |
tree | ed5206eb70fc710ff0ad5e08cecae47c54fbb2e3 /Dockerfile | |
parent | 9cea7f0393a3bdd5b020f014ed1f8929a5755342 (diff) | |
download | voidsky-5bff031e725b8249f3f69a26055d462cd1cd6fdd.tar.zst |
A few good metrics (#7897)
* Align dist and release tags on all platforms * Upload web sourcemaps * Debug code * Send debug and error logging to Sentry * Let .env do the work * Try straight env * Try copy in Dockerfile * Ok ok ok * Debug Dockerfile * Proper setup * See where we're at * Reference var correctly * Fall back to package version * Verbose force env * Should be working native builds * Comments * Remove unused deps * Revert unneeded changes * Remove debug code * Clarify intent * Remove deprecated files * Add sentry vars to OTA * Debug * Revert "Debug" This reverts commit 2d5857fb0fb0858ac3e2f98bc56bde913078d0a7. * Use included CLI to upload native source maps post-OTA build * Use included bin script See https://github.com/getsentry/sentry-react-native/commit/0d87adb516b2a5ea61353e25098c31f9aeb7e503 * Bump sentry, update script * Comment * fix failing CI * Pin sentry, update patch, update lock --------- Co-authored-by: Samuel Newman <mozzius@protonmail.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile index c5613e289..fa1d1e323 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,21 +4,45 @@ WORKDIR /usr/src/social-app ENV DEBIAN_FRONTEND=noninteractive +# # Node +# ENV NODE_VERSION=20 ENV NVM_DIR=/usr/share/nvm +# # Go +# ENV GODEBUG="netdns=go" ENV GOOS="linux" ENV GOARCH="amd64" ENV CGO_ENABLED=1 ENV GOEXPERIMENT="loopvar" +# # Expo +# ARG EXPO_PUBLIC_BUNDLE_IDENTIFIER ENV EXPO_PUBLIC_BUNDLE_IDENTIFIER=${EXPO_PUBLIC_BUNDLE_IDENTIFIER:-dev} +# The latest git hash of the preview branch on render.com +ARG RENDER_GIT_COMMIT + +# +# Sentry +# +ARG SENTRY_AUTH_TOKEN +ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN:-unknown} +# Will fall back to package.json#version, but this is handled elsewhere +ARG SENTRY_RELEASE +ENV SENTRY_RELEASE=$SENTRY_RELEASE +ARG SENTRY_DIST +# Default to RENDER_GIT_COMMIT if not set by GitHub workflows +ENV SENTRY_DIST=${SENTRY_DIST:-$RENDER_GIT_COMMIT} + +# +# Copy everything into the container +# COPY . . # @@ -40,7 +64,7 @@ RUN \. "$NVM_DIR/nvm.sh" && \ yarn && \ yarn intl:build 2>&1 | tee i18n.log && \ if grep -q "invalid syntax" "i18n.log"; then echo "\n\nFound compilation errors!\n\n" && exit 1; else echo "\n\nNo compile errors!\n\n"; fi && \ - EXPO_PUBLIC_BUNDLE_IDENTIFIER=$EXPO_PUBLIC_BUNDLE_IDENTIFIER EXPO_PUBLIC_BUNDLE_DATE=$() yarn build-web + EXPO_PUBLIC_BUNDLE_IDENTIFIER=$EXPO_PUBLIC_BUNDLE_IDENTIFIER EXPO_PUBLIC_BUNDLE_DATE=$() SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN SENTRY_RELEASE=$SENTRY_RELEASE SENTRY_DIST=$SENTRY_DIST yarn build-web # DEBUG RUN find ./bskyweb/static && find ./web-build/static |