Refactoring
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
# To enable ssh & remote debugging on app service change the base image to the one below
|
||||
# FROM mcr.microsoft.com/azure-functions/node:4-node18-appservice
|
||||
FROM mcr.microsoft.com/azure-functions/node:4-node18
|
||||
FROM --platform=linux/amd64 node:18-alpine
|
||||
|
||||
ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
|
||||
AzureFunctionsJobHost__Logging__Console__IsEnabled=true
|
||||
COPY ./node_modules ./node_modules
|
||||
COPY ./dist ./dist
|
||||
|
||||
COPY . /home/site/wwwroot
|
||||
EXPOSE 3000
|
||||
|
||||
RUN cd /home/site/wwwroot && \
|
||||
npm install
|
||||
CMD ["node", "dist/main.js"]
|
||||
Reference in New Issue
Block a user