|
@ -1,15 +1,16 @@ |
|
|
FROM node:14.5.0-alpine |
|
|
FROM node:14.5.0-alpine |
|
|
|
|
|
|
|
|
# create destination directory |
|
|
# create destination directory |
|
|
RUN mkdir -p /usr/src/test-02 |
|
|
|
|
|
WORKDIR /usr/src/test-02 |
|
|
|
|
|
|
|
|
WORKDIR /usr/src |
|
|
|
|
|
|
|
|
# update and install dependency |
|
|
# update and install dependency |
|
|
RUN apk update && apk upgrade |
|
|
RUN apk update && apk upgrade |
|
|
RUN apk add git |
|
|
RUN apk add git |
|
|
|
|
|
|
|
|
# copy the app, note .dockerignore |
|
|
# 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 |
|
|
RUN yarn install |
|
|
|
|
|
|
|
|
# build necessary, even if no static files are needed, |
|
|
# build necessary, even if no static files are needed, |
|
|