File tree 2 files changed +12
-3
lines changed
docusaurus/docs/what-is-included
2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,20 @@ ARG GA_TRACKING_ID
7
7
# Define environment variables
8
8
ENV PORT 3000
9
9
ENV HOST 0.0.0.0
10
- ENV GA_TRACKING_ID ${ GA_TRACKING_ID}
10
+ ENV GA_TRACKING_ID $GA_TRACKING_ID
11
11
12
12
# Define project dir
13
13
WORKDIR /usr/src/app
14
14
15
+ # Install OS deps necessary by some packages (e.g.: node-canvas)
16
+ RUN apk add --update --no-cache \
17
+ make \
18
+ g++ \
19
+ jpeg-dev \
20
+ cairo-dev \
21
+ giflib-dev \
22
+ pango-dev
23
+
15
24
# Install dependencies
16
25
COPY package*.json ./
17
26
RUN npm install
@@ -24,4 +33,4 @@ RUN npm run build
24
33
25
34
# Expose port and start command
26
35
EXPOSE $PORT
27
- CMD [ " npm" , " start" ]
36
+ CMD npm start -- -p $PORT
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ Example:
27
27
ARG SOME_ARGUMENT
28
28
29
29
# Define environment variables
30
- ENV SOME_ENV_VAR ${ SOME_ARGUMENT}
30
+ ENV SOME_ENV_VAR $SOME_ARGUMENT
31
31
```
32
32
33
33
You can check the existing ` Dockerfile ` to see how we're configuring ` GA_TRACKING_ID ` for an example on this process.
You can’t perform that action at this time.
0 commit comments