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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user