From 2cd3bd0e1dcc688dbfe4e5d94577e4a575d135d7 Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Mon, 28 Feb 2022 09:08:10 +0100 Subject: [PATCH] fix docker build --- .dockerignore | 8 ++++++++ Dockerfile | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.dockerignore b/.dockerignore index 04606cab..b23f5e3e 100644 --- a/.dockerignore +++ b/.dockerignore @@ -19,3 +19,11 @@ docker-compose.yml Dockerfile Procfile protractor.conf.js +pg_data +ui/.next +ui/node_modules +api/node_modules +api/pg_data +api/data +api/maria_data +api/dist \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 86b3e54f..2928a3a4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM node:16-alpine as ui WORKDIR /usr/src/ui -RUN apk update && apk add curl bash && rm -rf /var/cache/apk/* +RUN apk --update --no-cache add curl bash g++ make libpng-dev # install node-prune (https://github.com/tj/node-prune) RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin @@ -26,7 +26,7 @@ LABEL maintainer="OhMyForm " WORKDIR /usr/src/api -RUN apk --update --no-cache add curl bash g++ make libpng-dev libc6-compat +RUN apk --update --no-cache add curl bash g++ make libpng-dev # install node-prune (https://github.com/tj/node-prune) RUN curl -sfL https://install.goreleaser.com/github.com/tj/node-prune.sh | bash -s -- -b /usr/local/bin