Spaces:
Build error
Build error
Final Dockerfile and start.sh for application launch
Browse files- Dockerfile +12 -18
Dockerfile
CHANGED
@@ -1,20 +1,14 @@
|
|
1 |
-
#
|
2 |
-
|
3 |
-
#
|
4 |
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
5 |
-
# you may not use this file except in compliance with the License.
|
6 |
-
# You may obtain a copy of the License at
|
7 |
-
#
|
8 |
-
# http://www.apache.org/licenses/LICENSE-2.0
|
9 |
-
#
|
10 |
-
# Unless required by applicable law or agreed to in writing, software
|
11 |
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
12 |
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 |
-
# See the License for the specific language governing permissions and
|
14 |
-
# limitations under the License.
|
15 |
|
16 |
-
#
|
17 |
-
|
18 |
|
19 |
-
#
|
20 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dockerfile
|
2 |
+
FROM elungky/gen3c:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
+
# Copy the startup script into the container
|
5 |
+
COPY start.sh /app/start.sh
|
6 |
|
7 |
+
# Make the script executable inside the container
|
8 |
+
RUN chmod +x /app/start.sh
|
9 |
+
|
10 |
+
# Set the working directory (assuming /app is where your code is copied in elungky/gen3c:latest)
|
11 |
+
WORKDIR /app
|
12 |
+
|
13 |
+
# Execute the startup script when the container runs
|
14 |
+
CMD ["/app/start.sh"]
|