Skip to content
This repository has been 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
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
davisokoth marked this conversation as resolved.
Show resolved Hide resolved
RUN npm i -g azure-functions-core-tools@core --unsafe-perm true
RUN npm install
COPY . /home/node
EXPOSE 7071
CMD [ "npm", "run", "start"]