cygon commited on
Commit
3602c0b
·
1 Parent(s): 0dc1c83

intial commit

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -12,14 +12,13 @@ RUN apt-get update && apt-get install -y \
12
  ca-certificates \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
- # Install Encore CLI using the official install script
16
- RUN curl -L https://encore.dev/install.sh | bash
 
 
17
 
18
- # CRITICAL: Add Encore to PATH at build time AND runtime
19
- ENV PATH="/root/.encore/bin:${PATH}"
20
-
21
- # Verify installation works
22
- RUN /root/.encore/bin/encore version
23
 
24
  # Copy workspace files
25
  COPY package*.json ./
 
12
  ca-certificates \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
+ # Install Encore CLI to a system location that will persist
16
+ RUN curl -L https://encore.dev/install.sh | bash && \
17
+ cp /root/.encore/bin/encore /usr/local/bin/encore && \
18
+ chmod +x /usr/local/bin/encore
19
 
20
+ # Verify installation
21
+ RUN /usr/local/bin/encore version
 
 
 
22
 
23
  # Copy workspace files
24
  COPY package*.json ./