uppy/Dockerfile.test
Mikael Finstad bac107fc5f
@uppy/companion: fix Dockerfile and deploy automation (#3355)
* attempt at fixing dockerfile

that works with yarn workspaces and respects yarn.lock

* run corepack yarn

* update Dockerfile references

* remove unneccesary yarn plugin import

* Apply suggestions from code review

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2021-12-09 18:12:09 +01:00

15 lines
297 B
Text

FROM node:16.13.0-alpine
COPY package.json /app/package.json
WORKDIR /app
RUN apk --update add --virtual native-dep \
make gcc g++ python3 libgcc libstdc++ git && \
corepack yarn install && \
apk del native-dep
RUN apk add bash
COPY . /app
RUN npm install -g nodemon
CMD ["npm","test"]