Docker improvements

This commit is contained in:
Enstrayed
2024-04-11 01:26:05 -07:00
parent 43bc49cc2d
commit 249f88a6c7
6 changed files with 29 additions and 16 deletions

View File

@@ -1,6 +1,9 @@
FROM node:20
WORKDIR /app
EXPOSE 8127
CMD [ "bash", "init.sh" ]
# This is just copied from urlshortener cause both apps have similar architecture
RUN git clone https://github.com/enstrayed/enstrayedapi .
RUN git config --global --add safe.directory /app
RUN git show --oneline -s >> GITVERSION
RUN npm install
ENTRYPOINT [ "node", "index.js" ]