Spaces:
Runtime error
Runtime error
cygon
commited on
Commit
·
3602c0b
1
Parent(s):
0dc1c83
intial commit
Browse files- 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
|
| 16 |
-
RUN curl -L https://encore.dev/install.sh | bash
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
|
| 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 ./
|