FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javaDevContainer/Dockerfile at main · Amrish-Sharma/javaDevContainer · GitHub
Amrish-Sharma
javaDevContainer
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
javaDevContainer
/
Dockerfile
Copy path
More file actions
More file actions
Latest commit
History
History
History
44 lines (34 loc) · 1.24 KB
Breadcrumbs
javaDevContainer
/
Dockerfile
Copy path
File metadata and controls
44 lines (34 loc) · 1.24 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM
maven:3.8-openjdk-8 AS devcontainer
#
Set working directory
WORKDIR
/workspace
#
Copy Maven settings file into the container
COPY
./files/settings.xml /root/.m2/settings.xml
#
Install required tools and dependencies
RUN
apt-get update && apt-get install -y \
wget \
subversion \
git \
&& rm -rf /var/lib/apt/lists/*
#
Install Tomcat
RUN
wget https://downloads.apache.org/tomcat/tomcat-9/v9.0.98/bin/apache-tomcat-9.0.98.tar.gz && \
tar -xzf apache-tomcat-9.0.98.tar.gz -C /opt/ && \
mv /opt/apache-tomcat-9.0.98 /opt/tomcat && \
rm apache-tomcat-9.0.98.tar.gz
#
Manually install itext-2.1.7.js1.jar to local Maven repository
COPY
./files/itext-2.1.7.js1.jar /workspace/
RUN
mvn install:install-file -Dfile=/workspace/itext-2.1.7.js1.jar \
-DgroupId=com.lowagie \
-DartifactId=itext \
-Dversion=2.1.7.js1 \
-Dpackaging=jar
#
Install MySQL JDBC connector
COPY
./files/mysql-connector-java.jar /opt/tomcat/lib/mysql-connector-java.jar
#
Set environment variables
ENV
CATALINA_HOME=/opt/tomcat
ENV
PATH=$CATALINA_HOME/bin:$PATH
#
Expose the default Tomcat port
EXPOSE
8080
#
Copy project files (optional for local mounting)
COPY
. /workspace
#
Command to start Tomcat in development mode
CMD
[
"catalina.sh"
,
"run"
]
Back
|
FazBrowse Home
|
New Git URL