@joystick.js/cli-canary 0.0.0-canary.1667 → 0.0.0-canary.1668
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.
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
# Use
|
|
2
|
-
FROM
|
|
1
|
+
# Use Node.js 20 Slim as the base image
|
|
2
|
+
FROM node:20-slim
|
|
3
3
|
|
|
4
4
|
# Avoid prompts from apt
|
|
5
5
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
6
6
|
|
|
7
|
-
# Set
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# Install Node.js 20 and common dependencies
|
|
11
|
-
RUN apt-get update && apt-get install -y \
|
|
12
|
-
curl \
|
|
13
|
-
ca-certificates \
|
|
14
|
-
gnupg \
|
|
15
|
-
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
|
16
|
-
&& apt-get install -y nodejs \
|
|
17
|
-
&& apt-get clean \
|
|
18
|
-
&& rm -rf /var/lib/apt/lists/*
|
|
19
|
-
|
|
20
|
-
# Verify Node.js version
|
|
21
|
-
RUN node --version
|
|
7
|
+
# Set the working directory in the container
|
|
8
|
+
WORKDIR /app
|
|
22
9
|
|
|
23
10
|
# Allow custom apt dependencies to be passed as build argument
|
|
24
11
|
ARG CUSTOM_APT_DEPS=""
|
|
@@ -38,9 +25,6 @@ RUN if [ ! -z "$GLOBAL_NPM_PACKAGES" ]; then \
|
|
|
38
25
|
npm install -g $GLOBAL_NPM_PACKAGES; \
|
|
39
26
|
fi
|
|
40
27
|
|
|
41
|
-
# Set the working directory in the container
|
|
42
|
-
WORKDIR /app
|
|
43
|
-
|
|
44
28
|
# Copy package.json and package-lock.json (if available)
|
|
45
29
|
COPY ./.build/package*.json ./
|
|
46
30
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joystick.js/cli-canary",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-canary.
|
|
5
|
-
"canary_version": "0.0.0-canary.
|
|
4
|
+
"version": "0.0.0-canary.1668",
|
|
5
|
+
"canary_version": "0.0.0-canary.1667",
|
|
6
6
|
"description": "The CLI for Joystick.",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"bin": {
|
|
@@ -1,24 +1,11 @@
|
|
|
1
|
-
# Use
|
|
2
|
-
FROM
|
|
1
|
+
# Use Node.js 20 Slim as the base image
|
|
2
|
+
FROM node:20-slim
|
|
3
3
|
|
|
4
4
|
# Avoid prompts from apt
|
|
5
5
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
6
6
|
|
|
7
|
-
# Set
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# Install Node.js 20 and common dependencies
|
|
11
|
-
RUN apt-get update && apt-get install -y \
|
|
12
|
-
curl \
|
|
13
|
-
ca-certificates \
|
|
14
|
-
gnupg \
|
|
15
|
-
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
|
16
|
-
&& apt-get install -y nodejs \
|
|
17
|
-
&& apt-get clean \
|
|
18
|
-
&& rm -rf /var/lib/apt/lists/*
|
|
19
|
-
|
|
20
|
-
# Verify Node.js version
|
|
21
|
-
RUN node --version
|
|
7
|
+
# Set the working directory in the container
|
|
8
|
+
WORKDIR /app
|
|
22
9
|
|
|
23
10
|
# Allow custom apt dependencies to be passed as build argument
|
|
24
11
|
ARG CUSTOM_APT_DEPS=""
|
|
@@ -38,9 +25,6 @@ RUN if [ ! -z "$GLOBAL_NPM_PACKAGES" ]; then \
|
|
|
38
25
|
npm install -g $GLOBAL_NPM_PACKAGES; \
|
|
39
26
|
fi
|
|
40
27
|
|
|
41
|
-
# Set the working directory in the container
|
|
42
|
-
WORKDIR /app
|
|
43
|
-
|
|
44
28
|
# Copy package.json and package-lock.json (if available)
|
|
45
29
|
COPY ./.build/package*.json ./
|
|
46
30
|
|