mirror of
https://git.proxmox.com/git/mirror_xterm.js
synced 2025-10-04 05:28:39 +00:00
Remove entrypoint
Signed-off-by: Antonis Kalipetis <akalipetis@gmail.com>
This commit is contained in:
parent
6b6314227e
commit
b2e257bf37
@ -10,8 +10,8 @@ RUN apt-get update \
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
# Set an entrypoint, to automatically install node modules
|
||||
COPY entrypoint.sh /entrypoint.sh
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
ENTRYPOINT ["/bin/bash", "-c", "if [[ ! -d node_modules ]]; then npm install; fi; exec \"$@\";"]
|
||||
CMD ["npm", "run", "dev"]
|
||||
|
||||
# First, install dependencies to improve layer caching
|
||||
COPY package.json /usr/src/app/
|
||||
@ -22,4 +22,3 @@ COPY . /usr/src/app
|
||||
|
||||
# Run the tests and build, to make sure everything is working nicely
|
||||
RUN npm run test && npm run build
|
||||
CMD ["npm", "run", "dev"]
|
||||
|
@ -1,8 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
# Install Node modules, if the `node_modules` directory does not exist
|
||||
if [[ ! -d node_modules ]]; then
|
||||
npm install;
|
||||
fi
|
||||
|
||||
exec "$@"
|
Loading…
Reference in New Issue
Block a user