Skip to content
This repository was archived by the owner on Jun 24, 2019. It is now read-only.

Add Docker #51

Open
wants to merge 13 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,18 @@
"obj": true,
"bin": true
},
"debug.internalConsoleOptions": "neverOpen"
"debug.internalConsoleOptions": "neverOpen",
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
},
{
"language": "typescriptreact",
"autoFix": true
}
],
"azureFunctions.projectSubpath": "src"
}
19 changes: 13 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
FROM node:lts
RUN apt-get update
RUN apt-get install dos2unix
RUN yarn global add azurite
RUN dos2unix /usr/local/share/.config/yarn/global/node_modules/azurite/bin/azurite
ENTRYPOINT azurite
FROM mcr.microsoft.com/azure-functions/node:2.0

ENV NPM_CONFIG_PREFIX=/home/node/.npm-global
ENV PATH=$PATH:/home/node/.npm-global/bin
WORKDIR /home/node
ENV AzureWebJobsScriptRoot=/home/node
COPY package.json /home/node
# RUN npm i -g copyfiles onchange rimraf typescript ttypescript
RUN npm i -g azure-functions-core-tools@core --unsafe-perm true
RUN npm install
COPY . /home/node
EXPOSE 7071
CMD [ "npm", "run", "start"]