@akanjs/cli 0.9.15 → 0.9.17
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/index.js +5 -4
- package/esm/index.js +5 -4
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -780,7 +780,7 @@ var getDockerRunScripts = (runs) => {
|
|
|
780
780
|
return `RUN ${run}`;
|
|
781
781
|
else
|
|
782
782
|
return Object.entries(run).map(
|
|
783
|
-
([arch, script]) => `RUN if [ "$TARGETARCH" = "${arch}" ]; then ${script} fi`
|
|
783
|
+
([arch, script]) => `RUN if [ "$TARGETARCH" = "${arch}" ]; then ${script}; fi`
|
|
784
784
|
).join("\n");
|
|
785
785
|
});
|
|
786
786
|
};
|
|
@@ -801,11 +801,12 @@ var makeDockerfile = (type, config, props) => {
|
|
|
801
801
|
const command = config.command ?? ["node", "main.js"];
|
|
802
802
|
const content = `${imageScript}
|
|
803
803
|
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
|
|
804
|
-
RUN apt
|
|
805
|
-
RUN apt
|
|
804
|
+
RUN apt update && apt upgrade -y
|
|
805
|
+
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
|
|
806
806
|
ARG TARGETARCH
|
|
807
|
-
RUN if [ "$TARGETARCH" = "amd64" ]; then wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian92-x86_64-100.3.1.deb && apt
|
|
807
|
+
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
|
|
808
808
|
${preRunScripts.join("\n")}
|
|
809
|
+
RUN rm -rf /var/lib/apt/lists/*
|
|
809
810
|
RUN mkdir -p /workspace
|
|
810
811
|
WORKDIR /workspace
|
|
811
812
|
COPY ./package.json ./package.json
|
package/esm/index.js
CHANGED
|
@@ -760,7 +760,7 @@ var getDockerRunScripts = (runs) => {
|
|
|
760
760
|
return `RUN ${run}`;
|
|
761
761
|
else
|
|
762
762
|
return Object.entries(run).map(
|
|
763
|
-
([arch, script]) => `RUN if [ "$TARGETARCH" = "${arch}" ]; then ${script} fi`
|
|
763
|
+
([arch, script]) => `RUN if [ "$TARGETARCH" = "${arch}" ]; then ${script}; fi`
|
|
764
764
|
).join("\n");
|
|
765
765
|
});
|
|
766
766
|
};
|
|
@@ -781,11 +781,12 @@ var makeDockerfile = (type, config, props) => {
|
|
|
781
781
|
const command = config.command ?? ["node", "main.js"];
|
|
782
782
|
const content = `${imageScript}
|
|
783
783
|
RUN ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
|
|
784
|
-
RUN apt
|
|
785
|
-
RUN apt
|
|
784
|
+
RUN apt update && apt upgrade -y
|
|
785
|
+
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
|
|
786
786
|
ARG TARGETARCH
|
|
787
|
-
RUN if [ "$TARGETARCH" = "amd64" ]; then wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-debian92-x86_64-100.3.1.deb && apt
|
|
787
|
+
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
|
|
788
788
|
${preRunScripts.join("\n")}
|
|
789
|
+
RUN rm -rf /var/lib/apt/lists/*
|
|
789
790
|
RUN mkdir -p /workspace
|
|
790
791
|
WORKDIR /workspace
|
|
791
792
|
COPY ./package.json ./package.json
|