diff --git a/Dockerfile b/Dockerfile index 81f5dc0..fd65849 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,16 @@ FROM node:14.5.0-alpine # create destination directory -RUN mkdir -p /usr/src/test-02 -WORKDIR /usr/src/test-02 +WORKDIR /usr/src # update and install dependency RUN apk update && apk upgrade RUN apk add git # copy the app, note .dockerignore -COPY . /usr/src/test-02/ + +RUN git clone --depth 1 https://gitea.flylocal.us/spencer/test-02.git +WORKDIR /usr/src/test-02 RUN yarn install # build necessary, even if no static files are needed,