diff --git a/dockerfile b/dockerfile index 25e9f42..73b0dd8 100644 --- a/dockerfile +++ b/dockerfile @@ -15,6 +15,7 @@ RUN apt-get install -y wget curl RUN wget https://golang.org/dl/go1.20.2.linux-amd64.tar.gz RUN tar -C /usr/local -xzf go1.20.2.linux-amd64.tar.gz ENV PATH=$PATH:/usr/local/go/bin +RUN rm go1.20.2.linux-amd64.tar.gz # install nodejs 18.16.0 RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - @@ -34,6 +35,11 @@ RUN npm run client-build RUN chmod +x build.sh RUN ./build.sh +# clean up +RUN apt-get remove -y wget curl nodejs +RUN apt-get autoremove -y +RUN rm -rf node_modules + WORKDIR /app/build CMD ["./cosmos"]