This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
tstatic/Dockerfile

24 lines
374 B
Text
Raw Normal View History

2018-03-15 20:37:56 +00:00
FROM node:8.10.0-alpine
2018-01-26 19:56:43 +00:00
RUN mkdir -p /public
2018-03-21 11:28:30 +00:00
ENV NODE_ENV production
RUN apk add --no-cache git
2018-01-26 19:56:43 +00:00
COPY ./src /app/src
COPY ./package.json /app/package.json
COPY ./package-lock.json /app/package-lock.json
2018-01-26 19:56:43 +00:00
COPY ./tsconfig.json /app/tsconfig.json
WORKDIR /app
2018-03-21 11:28:30 +00:00
RUN npm install --only=prod
RUN npm install --only=dev
2018-01-26 19:56:43 +00:00
RUN npm run build
CMD npm start -- /public
2018-01-28 11:10:42 +00:00
EXPOSE 5000