update docker files to build
This commit is contained in:
1 parent
23126a92cd
commit
0b646ee64f
8 files changed
+49
-10
No files matched your search
@@ -35,10 +35,12 @@ RUN npm install
|
||||
|
||||
COPY server ./
|
||||
|
||||
COPY --from=frontend-build /app/client/dist ./public
|
||||
|
||||
RUN chmod +x ./scripts/inject-vars.sh
|
||||
|
||||
RUN npm run build
|
||||
|
||||
COPY --from=frontend-build /app/client/dist ./public
|
||||
|
||||
EXPOSE 52345
|
||||
|
||||
CMD ["sh", "-c", "./scripts/inject-vars.sh && node ./src/index.js"]
|
||||
CMD ["sh", "-c", "./scripts/inject-vars.sh && node ./dist/index.js"]
|
||||
Reference in new issue
Block a user