From e00a7da8e8f6b877dac9a3e28f791f42778f59a7 Mon Sep 17 00:00:00 2001 From: Spencer Flagg Date: Fri, 1 Oct 2021 18:16:26 +0200 Subject: [PATCH] moved 'git clone' out of docker --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd65849..744918e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,15 @@ FROM node:14.5.0-alpine # create destination directory -WORKDIR /usr/src +RUN mkdir -p /usr/src/test-02 +WORKDIR /usr/src/test-02 # update and install dependency RUN apk update && apk upgrade RUN apk add git # copy the app, note .dockerignore - -RUN git clone --depth 1 https://gitea.flylocal.us/spencer/test-02.git -WORKDIR /usr/src/test-02 +COPY . /usr/src/nuxt-app/ RUN yarn install # build necessary, even if no static files are needed,