Refactoring

This commit is contained in:
2025-01-20 18:02:29 -06:00
parent b5b2cbce6f
commit 986d23b2f6
3 changed files with 12 additions and 7 deletions

View File

@@ -8,11 +8,11 @@ CMD ["node", "/api/dist/main.js"]
FROM base AS app
RUN npm i -g serve
WORKDIR ./app
# COPY ./app/dist ./app/dist
COPY ./app .
RUN npm install
# WORKDIR ./app
COPY ./app/dist ./app/dist
# COPY ./app .
# RUN npm install
EXPOSE 8080
# CMD [ "serve", "-s", "app/dist", "-p", "8080" ]
CMD ["npm", "run", "dev"]
CMD [ "serve", "-s", "app/dist", "-p", "8080" ]
# CMD ["npm", "run", "dev"]
# ENTRYPOINT ["tail", "-f", "/dev/null"]