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

28 lines
423 B
Text
Raw Normal View History

2018-05-04 20:55:56 +01:00
FROM node:8-alpine
2018-01-26 19:56:43 +00:00
COPY ./src /opt/tstatic/src
COPY ./package.json opt/tstatic/package.json
COPY ./package-lock.json opt/tstatic/package-lock.json
COPY ./tsconfig.json opt/tstatic/tsconfig.json
COPY ./site /var/www
2018-01-26 19:56:43 +00:00
WORKDIR /opt/tstatic
2018-01-26 19:56:43 +00:00
2018-05-04 20:47:51 +01:00
RUN apk add --no-cache git
RUN npm install
ENV NODE_ENV production
2018-01-26 19:56:43 +00:00
RUN npm run build
2018-05-04 20:47:51 +01:00
RUN npm prune --production
RUN npm install -g .
WORKDIR /
CMD tstatic /var/www
2018-01-26 19:56:43 +00:00
2018-01-28 11:10:42 +00:00
EXPOSE 5000