forked from Azure/Azurite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
46 lines (33 loc) · 839 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
#
# Builder
#
FROM node:14-alpine3.17 AS builder
WORKDIR /opt/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 verbose
#
# Production image
#
FROM node:14-alpine3.17
ENV NODE_ENV=production
WORKDIR /opt/azurite
# Default Workspace Volume
VOLUME [ "/data" ]
COPY package*.json LICENSE NOTICE.txt ./
COPY --from=builder /opt/azurite/dist/ dist/
RUN npm config set unsafe-perm=true && \
npm install -g --loglevel verbose
# Blob Storage Port
EXPOSE 10000
# Queue Storage Port
EXPOSE 10001
# Table Storage Port
EXPOSE 10002
CMD ["azurite", "-l", "/data", "--blobHost", "0.0.0.0","--queueHost", "0.0.0.0", "--tableHost", "0.0.0.0"]