D
Dokploy8mo ago
max.d

Environment Settings creates .env, overrides existing conig

Any workaround? I want to only store secrets in Dokploy and have default vars commited and cp .env.whatever .env
1 Reply
max.d
max.dOP8mo ago
RUN if [ -f .env ]; then \
touch .env.temp && cat .env.staging .env > .env.temp && mv .env.temp .env; \
else \
cp .env.staging .env; \
fi
RUN if [ -f .env ]; then \
touch .env.temp && cat .env.staging .env > .env.temp && mv .env.temp .env; \
else \
cp .env.staging .env; \
fi
using this workaround, seems to work

Did you find this page helpful?