@akanjs/config 0.9.16 → 0.9.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/src/akanConfig.js +5 -4
- package/esm/src/akanConfig.js +5 -4
- package/package.json +1 -1
package/cjs/src/akanConfig.js
CHANGED
|
@@ -136,15 +136,17 @@ const makeDockerfile = (type, config, props) => {
|
|
|
136
136
|
const command = config.command ?? ["node", "main.js"];
|
|
137
137
|
const content = `${imageScript}
|
|
138
138
|
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
|
|
139
|
-
RUN apt
|
|
140
|
-
RUN apt
|
|
139
|
+
RUN apt update && apt upgrade -y
|
|
140
|
+
RUN apt install -y git redis build-essential python3 ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils udev ffmpeg
|
|
141
141
|
ARG TARGETARCH
|
|
142
|
-
RUN if [ "$TARGETARCH" = "amd64" ]; then wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian92-x86_64-100.3.1.deb && apt
|
|
142
|
+
RUN if [ "$TARGETARCH" = "amd64" ]; then wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian92-x86_64-100.3.1.deb && apt install -y ./mongodb-database-tools-*.deb && rm -f mongodb-database-tools-*.deb; fi
|
|
143
143
|
${preRunScripts.join("\n")}
|
|
144
|
+
RUN rm -rf /var/lib/apt/lists/*
|
|
144
145
|
RUN mkdir -p /workspace
|
|
145
146
|
WORKDIR /workspace
|
|
146
147
|
COPY ./package.json ./package.json
|
|
147
148
|
RUN npx pnpm i --prod
|
|
149
|
+
${postRunScripts.join("\n")}
|
|
148
150
|
COPY . .
|
|
149
151
|
ENV PORT=8080
|
|
150
152
|
ENV NODE_OPTIONS=--max_old_space_size=8192
|
|
@@ -153,7 +155,6 @@ ENV NEXT_PUBLIC_SERVE_DOMAIN=${serveDomain}
|
|
|
153
155
|
ENV NEXT_PUBLIC_APP_NAME=${name}
|
|
154
156
|
ENV NEXT_PUBLIC_ENV=${env}
|
|
155
157
|
ENV NEXT_PUBLIC_OPERATION_MODE=cloud
|
|
156
|
-
${postRunScripts.join("\n")}
|
|
157
158
|
CMD [${command.map((c) => `"${c}"`).join(",")}]`;
|
|
158
159
|
return {
|
|
159
160
|
content,
|
package/esm/src/akanConfig.js
CHANGED
|
@@ -101,15 +101,17 @@ const makeDockerfile = (type, config, props) => {
|
|
|
101
101
|
const command = config.command ?? ["node", "main.js"];
|
|
102
102
|
const content = `${imageScript}
|
|
103
103
|
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
|
|
104
|
-
RUN apt
|
|
105
|
-
RUN apt
|
|
104
|
+
RUN apt update && apt upgrade -y
|
|
105
|
+
RUN apt install -y git redis build-essential python3 ca-certificates fonts-liberation libappindicator3-1 libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils udev ffmpeg
|
|
106
106
|
ARG TARGETARCH
|
|
107
|
-
RUN if [ "$TARGETARCH" = "amd64" ]; then wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian92-x86_64-100.3.1.deb && apt
|
|
107
|
+
RUN if [ "$TARGETARCH" = "amd64" ]; then wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian92-x86_64-100.3.1.deb && apt install -y ./mongodb-database-tools-*.deb && rm -f mongodb-database-tools-*.deb; fi
|
|
108
108
|
${preRunScripts.join("\n")}
|
|
109
|
+
RUN rm -rf /var/lib/apt/lists/*
|
|
109
110
|
RUN mkdir -p /workspace
|
|
110
111
|
WORKDIR /workspace
|
|
111
112
|
COPY ./package.json ./package.json
|
|
112
113
|
RUN npx pnpm i --prod
|
|
114
|
+
${postRunScripts.join("\n")}
|
|
113
115
|
COPY . .
|
|
114
116
|
ENV PORT=8080
|
|
115
117
|
ENV NODE_OPTIONS=--max_old_space_size=8192
|
|
@@ -118,7 +120,6 @@ ENV NEXT_PUBLIC_SERVE_DOMAIN=${serveDomain}
|
|
|
118
120
|
ENV NEXT_PUBLIC_APP_NAME=${name}
|
|
119
121
|
ENV NEXT_PUBLIC_ENV=${env}
|
|
120
122
|
ENV NEXT_PUBLIC_OPERATION_MODE=cloud
|
|
121
|
-
${postRunScripts.join("\n")}
|
|
122
123
|
CMD [${command.map((c) => `"${c}"`).join(",")}]`;
|
|
123
124
|
return {
|
|
124
125
|
content,
|