mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
revert
This commit is contained in:
parent
04f0a1da2f
commit
880b9eeff3
@ -18,12 +18,6 @@ WORKDIR /comty-server
|
|||||||
|
|
||||||
# Copy Files
|
# Copy Files
|
||||||
COPY package.json ./
|
COPY package.json ./
|
||||||
|
|
||||||
# Install modules & rebuild for host
|
|
||||||
RUN npm install
|
|
||||||
RUN npm rebuild @tensorflow/tfjs-node --build-from-source
|
|
||||||
|
|
||||||
# Copy Files
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
# Fix permissions
|
# Fix permissions
|
||||||
@ -33,6 +27,10 @@ RUN chown -R node:node /comty-server
|
|||||||
# Set user to node
|
# Set user to node
|
||||||
USER node
|
USER node
|
||||||
|
|
||||||
|
# Install modules & rebuild for host
|
||||||
|
RUN npm install
|
||||||
|
RUN npm rebuild @tensorflow/tfjs-node --build-from-source
|
||||||
|
|
||||||
# Start server
|
# Start server
|
||||||
RUN export NODE_ENV=production
|
RUN export NODE_ENV=production
|
||||||
CMD ["npm", "run", "start:prod"]
|
CMD ["npm", "run", "start:prod"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user