This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/packages/ipfs-api/Dockerfile

20 lines
312 B
Docker
Raw Normal View History

2021-09-17 14:10:54 +00:00
FROM node:16.9.0-alpine
WORKDIR /usr/app
# copy package configuration and install node modules
COPY package.json yarn.lock ./
RUN yarn --frozen-lockfile
# copy over source files
COPY src src
COPY tsconfig.json ./
# build application
ENV NODE_ENV production
RUN yarn build
EXPOSE 3100
CMD ["yarn", "start"]