-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1942 from ever-co/develop
Release
- Loading branch information
Showing
7 changed files
with
63 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,9 @@ ARG NEXT_PUBLIC_CHATWOOT_API_KEY | |
|
||
FROM node:${NODE_VERSION}-slim as base | ||
|
||
# Output the environment variable value | ||
RUN echo "NEXT_PUBLIC_GAUZY_API_SERVER_URL=${NEXT_PUBLIC_GAUZY_API_SERVER_URL}" | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL org.opencontainers.image.source https://github.com/ever-co/ever-teams | ||
|
||
|
@@ -78,6 +81,8 @@ COPY . . | |
|
||
ENV NODE_ENV=production | ||
|
||
RUN echo $NEXT_PUBLIC_GAUZY_API_SERVER_URL | ||
|
||
# Build application | ||
RUN yarn run build:web | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM vm/ubuntu:18.04 | ||
|
||
MEMORY 8G | ||
|
||
# install the latest version of Docker, as in the official Docker installation tutorial. | ||
RUN apt-get update && \ | ||
apt-get install ca-certificates curl gnupg lsb-release && \ | ||
sudo mkdir -p /etc/apt/keyrings && \ | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \ | ||
echo \ | ||
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" |\ | ||
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null && \ | ||
apt-get update && \ | ||
apt-get install docker-ce docker-ce-cli containerd.io | ||
|
||
COPY . . | ||
|
||
RUN REPEATABLE docker build -t ever-teams . | ||
|
||
RUN REPEATABLE docker run -d -p 3000:3000 ever-teams && sleep 5 | ||
|
||
EXPOSE WEBSITE localhost:3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM vm/ubuntu:22.04 | ||
|
||
ENV NODE_MAJOR=20 | ||
|
||
# install the latest version of Docker, as in the official Docker installation tutorial. | ||
RUN apt-get update &&\ | ||
apt-get install -y ca-certificates curl gnupg &&\ | ||
sudo mkdir -p /etc/apt/keyrings &&\ | ||
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg &&\ | ||
echo \ | ||
"deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" |\ | ||
sudo tee /etc/apt/sources.list.d/nodesource.list &&\ | ||
apt-get update &&\ | ||
apt-get install nodejs yarn -y | ||
|
||
COPY . . | ||
|
||
RUN REPEATABLE cd apps/web && yarn install && yarn build | ||
|
||
RUN BACKGROUND yarn start:web | ||
|
||
EXPOSE WEBSITE localhost:3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters