mirror of
https://github.com/SrIzan10/nodemon.git
synced 2026-05-01 10:55:09 +00:00
chore: tweak docker test env
This commit is contained in:
@@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y curl locales && rm -rf /var/lib/apt/lis
|
||||
ENV LANG en_US.utf8
|
||||
|
||||
# Install Node.js
|
||||
RUN curl --silent --location https://deb.nodesource.com/setup_8.x | bash -
|
||||
RUN curl --silent --location https://deb.nodesource.com/setup_10.x | bash -
|
||||
RUN apt-get install --yes nodejs build-essential
|
||||
|
||||
# Install app dependencies
|
||||
@@ -21,7 +21,7 @@ RUN npm install -g npx
|
||||
|
||||
# Bundle app source
|
||||
# Trouble with COPY http://stackoverflow.com/a/30405787/2926832
|
||||
COPY . /src
|
||||
# COPY . /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
docker build -t nodemon-test-env .
|
||||
docker run --mount type=bind,source=/Users/remy/Sites/nodemon,target=/src/node_modules/nodemon --name nodemon-test-env --rm -it nodemon-test-env bash
|
||||
docker run --mount type=bind,source=/Users/remy/Sites/nodemon,target=/src/nodemon --name nodemon-test-env --rm -it nodemon-test-env bash
|
||||
|
||||
# node /nodemon-src/bin/nodemon.js -V http.js
|
||||
|
||||
Reference in New Issue
Block a user