Spaces:
Running
Running
Commit
·
ced5922
1
Parent(s):
9a15d4e
update(Dockerfile): only remove .env if exists
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -13,8 +13,8 @@ RUN npm install
|
|
13 |
# Copy the entire application code to the working directory
|
14 |
COPY . .
|
15 |
|
16 |
-
# remove .env file
|
17 |
-
RUN rm .env
|
18 |
|
19 |
# Build the TypeScript code
|
20 |
RUN npm run build
|
|
|
13 |
# Copy the entire application code to the working directory
|
14 |
COPY . .
|
15 |
|
16 |
+
# remove .env file if it exists
|
17 |
+
RUN rm -f -- .env
|
18 |
|
19 |
# Build the TypeScript code
|
20 |
RUN npm run build
|