chore: Update Dockerfile to fix Teleport installation command and create teleport configuration file
Build and Push Docker Images / build-and-push (push) Has been cancelled
Build and Push Docker Images / build-and-push (push) Has been cancelled
This commit is contained in:
@@ -9,7 +9,6 @@ RUN npm install -g pm2
|
||||
|
||||
# Install git, openssh-client, and openssh-server
|
||||
RUN apt-get update && apt-get install -y git openssh-client software-properties-common sudo
|
||||
# RUN apt-get install -y fish
|
||||
|
||||
RUN git clone https://gitea.bramkelchtermans.be/Bram/linux-presets.git && cd linux-presets && chmod +x setup.sh && ./setup.sh --terminal-icon
|
||||
RUN rm -rf linux-presets
|
||||
@@ -23,6 +22,9 @@ RUN mkdir -p /root/.ssh
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
|
||||
# Copy the PM2 ecosystem file
|
||||
COPY ecosystem.develop.js /ecosystems/ecosystem.develop.js
|
||||
|
||||
# Expose ports
|
||||
EXPOSE 3000
|
||||
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: "node-app",
|
||||
script: "npm",
|
||||
args: "run dev",
|
||||
cwd: "/workspace", // Ensure this matches your working directory
|
||||
watch: true,
|
||||
env: {
|
||||
NODE_ENV: "development",
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -80,6 +80,7 @@ else
|
||||
echo "Error: Environment file not found at /environment/.dev.env"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Set the git user and email
|
||||
git config --global user.name $GIT_USER
|
||||
git config --global user.email $GIT_EMAIL
|
||||
@@ -94,5 +95,6 @@ CONFIG_FILE="/etc/teleport.yaml"
|
||||
sed -i "s/^ nodename:.*/ nodename: $HOSTNAME/" "$CONFIG_FILE"
|
||||
|
||||
nohup teleport start &
|
||||
# Start the application with pm2
|
||||
exec pm2-runtime "yarn dev"
|
||||
|
||||
# Start the application with PM2 using the ecosystem file
|
||||
exec pm2-runtime start /ecosystems/ecosystem.develop.js
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1 +1 @@
|
||||
1.0
|
||||
2.0
|
||||
Reference in New Issue
Block a user