Browse Source

got dockerfile working

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

+ 4
- 3
Dockerfile View File

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

Loading…
Cancel
Save