Skip to content

Commit c6ab1b4

Browse files
committed
missing folders added
1 parent 4f78988 commit c6ab1b4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
# syntax=docker/dockerfile:1.2
2-
31
FROM node:14 AS building
4-
WORKDIR /usr/local/app
2+
WORKDIR /app
53
# ENV USERNAME timetracker
64
# ENV HOME /home/${USERNAME}
75
# RUN useradd -ms /bin/bash ${USERNAME}
86
# WORKDIR ${HOME}/time-tracker-ui
9-
COPY . /usr/local/app/
7+
COPY . /app
108
# RUN chown ${USERNAME}:${USERNAME} -R ${HOME}/time-tracker-ui
119
# RUN chmod -R 777 ${HOME}/time-tracker-ui
1210
# USER ${USERNAME}
@@ -19,7 +17,7 @@ RUN --mount=type=secret,id=mysecret,dst=/foobar eval "$(echo $(cat /foobar))" &
1917

2018
FROM nginx:1.21 AS production
2119

22-
COPY --from=building /usr/local/app/dist/time-tracker /usr/share/nginx/html
20+
COPY --from=building /app/dist/time-tracker /usr/share/nginx/html
2321

2422
# FIXME: Actually if we can deploy to azure in port 80 we need a root user
2523
# Maybe we can refactor this dockerfile to use root user directly this is not a good approach y

0 commit comments

Comments
 (0)