Skip to content

Commit 15ba4cf

Browse files
committedMar 2, 2023
chg: m2 chip related changes for docker
1 parent 5474f55 commit 15ba4cf

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed
 

‎notificationDocker

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
FROM node:16.14.0
1+
FROM node:16-alpine
22

3-
# Let WatchTower know to ignore this container for checking
4-
LABEL com.centurylinklabs.watchtower.enable="false"
3+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
54

5+
RUN apk add chromium
66
WORKDIR /usr/src/app
77

88
#COPY ./package*.json ./
99
COPY ./notifications/ .
1010

11-
ENV NODE_ENV production
11+
#ENV NODE_ENV production
1212

1313
RUN npm install
1414
#RUN npm run build
@@ -20,6 +20,6 @@ ENV PROTOCOL "http://"
2020
ENV USE_FQDN_FOR_APIS false
2121
ENV FQDN ""
2222

23-
EXPOSE 1337
23+
EXPOSE 3020
2424

2525
CMD ["npm", "start"]

‎sellerApiDocker

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
FROM node:16.14.0
1+
FROM node:16-alpine
2+
3+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
4+
5+
RUN apk add chromium
26

37
# Set the working directory to /usr/src/app
48
WORKDIR /usr/src/app

‎sellerDocker

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,31 @@
1-
FROM node:16.14.0
1+
#FROM node:16 AS builder
2+
3+
FROM node:16-alpine
4+
5+
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
6+
7+
RUN apk add chromium
28

39
# Let WatchTower know to ignore this container for checking
4-
LABEL com.centurylinklabs.watchtower.enable="false"
10+
#LABEL com.centurylinklabs.watchtower.enable="false"
511

612
WORKDIR /usr/src/app
713

814
#COPY ./package*.json ./
915
COPY ./seller/ .
1016

11-
ENV NODE_ENV production
17+
#ENV NODE_ENV production
1218

1319
RUN npm install
1420
#RUN npm run build
1521

1622

17-
ENV NODE_ENV production
23+
#ENV NODE_ENV production
1824
ENV HOST 0.0.0.0
1925
ENV PROTOCOL "http://"
2026
ENV USE_FQDN_FOR_APIS false
2127
ENV FQDN ""
2228

23-
EXPOSE 1337
29+
EXPOSE 3019
2430

2531
CMD ["npm", "start"]

0 commit comments

Comments
 (0)
Please sign in to comment.