cygon commited on
Commit
7e4d893
·
1 Parent(s): 17f9693

intial commit

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -14
Dockerfile CHANGED
@@ -4,22 +4,20 @@ FROM node:20-slim
4
  # Set working directory
5
  WORKDIR /app
6
 
7
- # Install dependencies (curl, bash, git, wget)
8
- RUN apt-get update && apt-get install -y curl bash git wget ca-certificates && rm -rf /var/lib/apt/lists/*
9
-
10
- # Install Encore CLI with fallback methods
11
- # Try official installer first
12
- RUN curl -fsSL https://get.encore.dev | bash || echo "Official installer unavailable, using fallback..."
13
-
14
- # Fallback: Download binary directly from GitHub
15
- RUN if ! command -v encore &> /dev/null; then \
16
- echo "Downloading Encore binary from GitHub releases..."; \
17
- wget -q https://github.com/encoredev/encore/releases/latest/download/encore_linux_amd64 -O /usr/local/bin/encore && \
18
- chmod +x /usr/local/bin/encore; \
19
- fi
20
 
21
  # Add Encore to PATH
22
- ENV PATH="/root/.encore/bin:/usr/local/bin:${PATH}"
23
 
24
  # Verify installation
25
  RUN encore version
 
4
  # Set working directory
5
  WORKDIR /app
6
 
7
+ # Install dependencies
8
+ RUN apt-get update && apt-get install -y \
9
+ curl \
10
+ bash \
11
+ git \
12
+ ca-certificates \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Install Encore CLI using the official install script
16
+ # Use the alternative URL that works in restricted environments
17
+ RUN curl -L https://encore.dev/install.sh | bash
 
 
18
 
19
  # Add Encore to PATH
20
+ ENV PATH="/root/.encore/bin:${PATH}"
21
 
22
  # Verify installation
23
  RUN encore version