Skip to content

Commit c6591ef

Browse files
committed
deleting .env file, secrets are sent by terraform
1 parent 61a9d09 commit c6591ef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ CMD ${HOME}/time-tracker-ui/node_modules/.bin/ng serve --host 0.0.0.0 --disableH
1717

1818

1919
FROM development as build
20-
COPY .env .
2120
RUN npm run build
2221

2322
FROM nginx:1.21 AS production
@@ -27,7 +26,7 @@ RUN useradd -ms /bin/bash ${USERNAME}
2726

2827
COPY nginx.conf /etc/nginx/conf.d/default.conf
2928
COPY --from=build /home/timetracker/time-tracker-ui/dist/time-tracker /usr/share/nginx/html
30-
COPY .env /usr/share/nginx/html
29+
# COPY .env /usr/share/nginx/html
3130
RUN chown -R ${USERNAME}:${USERNAME} /var/cache/nginx && \
3231
chown -R ${USERNAME}:${USERNAME} /var/log/nginx && \
3332
chown -R ${USERNAME}:${USERNAME} /etc/nginx/conf.d

0 commit comments

Comments
 (0)