19 lines
356 B
Docker
19 lines
356 B
Docker
FROM node:slim
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY package*.json ./
|
|
RUN npm install --omit=dev
|
|
# RUN npm install -g javascript-obfuscator
|
|
|
|
COPY index.js index.js
|
|
COPY utils.js utils.js
|
|
COPY prices.json prices.json
|
|
|
|
# RUN javascript-obfuscator index.js --output index.js
|
|
# RUN javascript-obfuscator utils.js --output utils.js
|
|
|
|
EXPOSE 3002
|
|
|
|
CMD ["node", "index.js"]
|