Spaces:
Runtime error
Runtime error
cygon
commited on
Commit
·
0dc1c83
1
Parent(s):
48e767e
intial commit
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -13,14 +13,13 @@ RUN apt-get update && apt-get install -y \
|
|
| 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
|
| 24 |
|
| 25 |
# Copy workspace files
|
| 26 |
COPY package*.json ./
|
|
|
|
| 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 ./
|