diff --git a/Dockerfile b/Dockerfile index 0459ab9..416b066 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,9 +9,10 @@ COPY . /RackHD/on-tftp/ WORKDIR /RackHD/on-tftp RUN mkdir -p ./node_modules \ + && npm install --ignore-scripts --production \ + && rm -r ./node_modules/on-core ./node_modules/di \ && ln -s /RackHD/on-core ./node_modules/on-core \ - && ln -s /RackHD/on-core/node_modules/di ./node_modules/di \ - && npm install --ignore-scripts --production + && ln -s /RackHD/on-core/node_modules/di ./node_modules/di EXPOSE 69/udp VOLUME /RackHD/on-tftp/static/tftp