Skip to content

Commit 22c1608

Browse files
committed
2025.02.21 update dockerfile
1 parent 007680b commit 22c1608

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
push: true
4646
tags: ghcr.io/gitranks/gitranks-ui:latest
4747
build-args: |
48-
MONGODB_URI_AUTH=${{ secrets.MONGODB_URI_AUTH }}
48+
EXAMPLE_BUILD_VAR=aaa
4949
5050
# 4. SSH to droplet and deploy
5151
- name: SSH to droplet and deploy

Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
FROM node:22-alpine AS base
22

3-
# 1. Declare build arguments
4-
# 2. Convert build arguments into environment variables
5-
ARG MONGODB_URI_AUTH
6-
ENV MONGODB_URI_AUTH=$MONGODB_URI_AUTH
3+
ENV MONGODB_URI_AUTH=mongodb://localhost:27020/auth
74

85
FROM base AS deps
96
RUN apk update && apk add --no-cache libc6-compat

0 commit comments

Comments
 (0)