Spaces:
Runtime error
Runtime error
cygon
commited on
Commit
·
7e4d893
1
Parent(s):
17f9693
intial commit
Browse files- Dockerfile +12 -14
Dockerfile
CHANGED
|
@@ -4,22 +4,20 @@ FROM node:20-slim
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
# Install dependencies
|
| 8 |
-
RUN apt-get update && apt-get install -y
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
chmod +x /usr/local/bin/encore; \
|
| 19 |
-
fi
|
| 20 |
|
| 21 |
# Add Encore to PATH
|
| 22 |
-
ENV PATH="/root/.encore/bin
|
| 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
|