@joystick.js/cli-canary 0.0.0-canary.1665 → 0.0.0-canary.1666

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,5 +1,5 @@
1
- # Use Ubuntu 24.04 as the base image
2
- FROM ubuntu:24.04
1
+ # Use Debian Slim as the base image
2
+ FROM debian:bullseye-slim
3
3
 
4
4
  # Avoid prompts from apt
5
5
  ENV DEBIAN_FRONTEND=noninteractive
@@ -10,10 +10,8 @@ ENV NODE_VERSION=20.x
10
10
  # Install Node.js 20 and common dependencies
11
11
  RUN apt-get update && apt-get install -y \
12
12
  curl \
13
- zip \
14
- unzip \
15
- git \
16
- build-essential \
13
+ ca-certificates \
14
+ gnupg \
17
15
  && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
18
16
  && apt-get install -y nodejs \
19
17
  && apt-get clean \
@@ -43,11 +41,17 @@ RUN if [ ! -z "$GLOBAL_NPM_PACKAGES" ]; then \
43
41
  # Set the working directory in the container
44
42
  WORKDIR /app
45
43
 
44
+ # Copy package.json and package-lock.json (if available)
45
+ COPY ./.build/package*.json ./
46
+
47
+ # Install NPM dependencies
48
+ RUN npm ci --only=production
49
+
46
50
  # Add build argument to invalidate cache
47
51
  ARG CACHEBUST=1
48
52
 
49
- # Copy the pre-built application
50
- COPY ./.build /app
53
+ # Copy the rest of the pre-built application
54
+ COPY ./.build .
51
55
 
52
56
  # Expose the port the app runs on
53
57
  EXPOSE 2600
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.1665",
5
- "canary_version": "0.0.0-canary.1664",
4
+ "version": "0.0.0-canary.1666",
5
+ "canary_version": "0.0.0-canary.1665",
6
6
  "description": "The CLI for Joystick.",
7
7
  "main": "dist/index.js",
8
8
  "bin": {
@@ -1,5 +1,5 @@
1
- # Use Ubuntu 24.04 as the base image
2
- FROM ubuntu:24.04
1
+ # Use Debian Slim as the base image
2
+ FROM debian:bullseye-slim
3
3
 
4
4
  # Avoid prompts from apt
5
5
  ENV DEBIAN_FRONTEND=noninteractive
@@ -10,10 +10,8 @@ ENV NODE_VERSION=20.x
10
10
  # Install Node.js 20 and common dependencies
11
11
  RUN apt-get update && apt-get install -y \
12
12
  curl \
13
- zip \
14
- unzip \
15
- git \
16
- build-essential \
13
+ ca-certificates \
14
+ gnupg \
17
15
  && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
18
16
  && apt-get install -y nodejs \
19
17
  && apt-get clean \
@@ -43,11 +41,17 @@ RUN if [ ! -z "$GLOBAL_NPM_PACKAGES" ]; then \
43
41
  # Set the working directory in the container
44
42
  WORKDIR /app
45
43
 
44
+ # Copy package.json and package-lock.json (if available)
45
+ COPY ./.build/package*.json ./
46
+
47
+ # Install NPM dependencies
48
+ RUN npm ci --only=production
49
+
46
50
  # Add build argument to invalidate cache
47
51
  ARG CACHEBUST=1
48
52
 
49
- # Copy the pre-built application
50
- COPY ./.build /app
53
+ # Copy the rest of the pre-built application
54
+ COPY ./.build .
51
55
 
52
56
  # Expose the port the app runs on
53
57
  EXPOSE 2600