Skip to content

Commit cb252ff

Browse files
committed
Change the order in which the NODE_ENV variable is set to allow the frontend to be built correctly in the Docker image
1 parent 061d321 commit cb252ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asklvkaszus-frontend/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ ENV TZ="Europe/Warsaw"
77
ENV DOMAIN="https://ask.lvkasz.us"
88
ENV YOUR_NICKNAME="@me"
99

10-
ENV NODE_ENV="production"
11-
1210
COPY package*.json ./
1311

1412
RUN npm install
@@ -17,4 +15,6 @@ COPY . .
1715

1816
EXPOSE 3031
1917

18+
ENV NODE_ENV="production"
19+
2020
CMD ["sh", "start.sh"]

0 commit comments

Comments
 (0)