Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse filesUpgrade to Google Maps API
- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -4,8 +4,8 @@ FROM python:3.11.9-slim
|
|
4 |
RUN --mount=type=secret,id=ORS_API_TOKEN,mode=0444,required=true
|
5 |
|
6 |
# Read secrets and set environment variables
|
7 |
-
RUN export
|
8 |
-
&& echo "
|
9 |
|
10 |
# Source the environment file
|
11 |
RUN . /etc/environment
|
|
|
4 |
RUN --mount=type=secret,id=ORS_API_TOKEN,mode=0444,required=true
|
5 |
|
6 |
# Read secrets and set environment variables
|
7 |
+
RUN export MAPS_API_KEY=$(cat /run/secrets/ORS_API_TOKEN) \
|
8 |
+
&& echo "MAPS_API_KEY=$MAPS_API_KEY" >> /etc/environment \
|
9 |
|
10 |
# Source the environment file
|
11 |
RUN . /etc/environment
|