Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARC200 support #76

Merged
merged 11 commits into from Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 10 additions & 4 deletions docker/Dockerfile
@@ -1,16 +1,22 @@
FROM node:18 AS build
FROM node:20 AS build
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && apt dist-upgrade -y && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN npm install -g npm@latest
WORKDIR /src
COPY package-lock.json package-lock.json
COPY package.json package.json
RUN npm ci
COPY . .
RUN npm install
RUN npm audit fix --save &>/dev/null
RUN npm ci
#RUN npm audit fix --save &>/dev/null
RUN npm run build
RUN cd /src/dist && ls
#RUN npm run test

FROM nginxinc/nginx-unprivileged:latest
USER root
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && apt dist-upgrade -y && apt install -y mc wget telnet git curl iotop atop vim && apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN apt update && apt dist-upgrade -y && apt install -y bc mc wget telnet git curl iotop atop vim && apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
RUN mkdir /app
COPY docker/default.conf /etc/nginx/conf.d/default.conf
RUN chown nginx:nginx /etc/nginx/conf.d -R
Expand Down
2 changes: 1 addition & 1 deletion docker/compose.sh
Expand Up @@ -3,7 +3,7 @@ ver=1.0.0
fi

echo "docker build -t \"scholtz2/a-wallet:$ver-main\" -f Dockerfile .."
docker build -t "scholtz2/a-wallet:$ver-main" -f Dockerfile .. || error_code=$?
nice -n 20 docker build -t "scholtz2/a-wallet:$ver-main" -f Dockerfile .. || error_code=$?
if [ "$error_code" != "" ]; then
echo "$error_code";
echo "failed to build";
Expand Down