probably working build

This commit is contained in:
2022-12-13 23:46:50 +05:00
parent d7f0272d9a
commit a27acf1ad3
3 changed files with 13 additions and 23 deletions

View File

@ -16,19 +16,16 @@ RUN apt install git ca-certificates lsb-release apt-transport-https wget curl na
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen
# Installing basic tools
RUN apt install nodejs npm -y --no-install-recommends \
&& apt auto-remove -y \
&& apt clean -y
#Get the repos
RUN git clone https://git.shihaam.dev/shihaam/okiba-org-frontend \
&& git clone https://git.shihaam.dev/shihaam/okiba-org-backend
RUN cd /root/okiba-org-frontend \
&& npm install \
&& cd /root/okiba-org-backend \
&& apt purge npm
&& git clone https://git.shihaam.dev/shihaam/okiba-org-backend \
&& curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash \
&& curl -fsSL https://get.pnpm.io/install.sh | bash \
&& source ~/.profile && source ~/.bashrc \
&& nvm install node \
&& cd /root/okiba-org-backend ; pnpm build \
&& wget -O words.txt https://raw.githubusercontent.com/dwyl/english-words/master/words_alpha.txt \
&& cd /root/okiba-org-frontend ; pnpm install ; pnpm run build
# Copy Start Services
COPY buildfiles/start_services.sh .