Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcwood committed Aug 25, 2024
1 parent 51d14b0 commit a715d95
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .docker/dockerfiles/base.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ RUN yarn install --production=true && \
rm -rf /usr/local/share/.cache/yarn

ARG MAX_MIND_LICENSE
RUN curl "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$MAX_MIND_LICENSE&suffix=tar.gz" -o ./GeoLite2-City.tar.gz && \
RUN curl -L "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$MAX_MIND_LICENSE&suffix=tar.gz" -o ./GeoLite2-City.tar.gz && \
gzip -d GeoLite2-City.tar.gz && \
tar -xvf GeoLite2-City.tar && \
mkdir -p /var/opt/maxmind/ && \
Expand Down
2 changes: 1 addition & 1 deletion .docker/dockerfiles/dev.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ENV BUNDLE_PATH=$BUNDLE_PATH \
ENV PATH=$BUNDLE_PATH/bin:$APP_HOME/node_modules/.bin:$PATH

ARG MAX_MIND_LICENSE
RUN curl "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$MAX_MIND_LICENSE&suffix=tar.gz" -o ./GeoLite2-City.tar.gz && \
RUN curl -L "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=$MAX_MIND_LICENSE&suffix=tar.gz" -o ./GeoLite2-City.tar.gz && \
gzip -d GeoLite2-City.tar.gz && \
tar -xvf GeoLite2-City.tar && \
mkdir -p /var/opt/maxmind/ && \
Expand Down
2 changes: 1 addition & 1 deletion .docker/dockerfiles/worker-dependencies.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# Create Server NodeJS Assets
# ================
FROM alpine:3.18 as server-nodejs-assets
FROM alpine:3.18 AS server-nodejs-assets

ENV RAILS_ENV=production \
NODE_ENV=production \
Expand Down
2 changes: 2 additions & 0 deletions tasks
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ function build-all-images {
function build-images-base {
source ./config/env/build_args.env
[ -z "$GRECAPTCHA_SITE_KEY" ] && echo "GRECAPTCHA_SITE_KEY empty, set in config/env/build_args.env" && exit 1
[ -z "$MAX_MIND_LICENSE" ] && echo "MAX_MIND_LICENSE empty, set in config/env/build_args.env" && exit 1

GIT_SHA="$(git rev-parse HEAD | head -c8)"

docker build \
--build-arg MAX_MIND_LICENSE="$MAX_MIND_LICENSE" \
--build-arg grecaptcha_site_key="$GRECAPTCHA_SITE_KEY" \
-t cpcwood/home-server-base:latest \
-t cpcwood/home-server-base:"$GIT_SHA" \
Expand Down

0 comments on commit a715d95

Please sign in to comment.