Browse Source

moved 'git clone' out of docker

master
Spencer Flagg 3 years ago
parent
commit
e00a7da8e8
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      Dockerfile

+ 3
- 4
Dockerfile View File

@ -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,

Loading…
Cancel
Save