Fixed a major issue in building docker image for backend where the env file was not being copied which resulted in backend not working!

This commit is contained in:
K
2025-07-23 17:13:27 +05:30
parent 220f822f3d
commit f32f7ddc6e
4 changed files with 30 additions and 2 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ WORKDIR /app
COPY . .
# Generate a random hex token and write it to .env
RUN echo "REFRESH_TOKEN_SECRET=$(openssl rand -hex 32)" >> /app/.env
RUN echo "REFRESH_TOKEN_SECRET = $(openssl rand -hex 32)" >> /app/.env
RUN npm install
# Switch user