forked from Azure/Azurite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (35 loc) · 920 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#
# Builder
#
FROM stefanscherer/node-windows:12.18.3 AS builder
RUN ["cmd", "mkdir", "c:\\azurite"]
WORKDIR c:/azurite
# Install dependencies first
COPY *.json LICENSE NOTICE.txt ./
# Copy the source code and build the app
COPY src ./src
COPY tests ./tests
RUN npm config set unsafe-perm=true && \
npm ci
RUN npm run build && \
npm install -g --loglevel info
#
# Production image
#
FROM stefanscherer/node-windows:12.18.3
ENV NODE_ENV=production
RUN ["cmd", "mkdir", "c:\\azurite"]
WORKDIR c:/azurite
# Default Workspace Volume
VOLUME [ "c:/data" ]
COPY package*.json LICENSE NOTICE.txt ./
COPY --from=builder c:/azurite/dist/ dist/
RUN npm config set unsafe-perm=true && \
npm install -g --loglevel info
# Blob Storage Port
EXPOSE 10000
# Queue Storage Port
EXPOSE 10001
# Table Storage Port
EXPOSE 10002
CMD CMD /s /c "azurite -l c:/data --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0"