mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 18:07:26 +08:00
9eb5afbb2b
* feat: Implement stream configuration tab * feat: split profile & configure into separate bundles * chore: better role logic * fix+chore: add test cases, implement expectAndFail, refactor tests * chore: add some comments * chore: Update src/core/client/framework/lib/form/helpers.tsx Co-Authored-By: cvle <vinh@wikiwi.io> * feat: support new graphql mutations/schema * fix: ci fixes * fix: improvement to revision loading * fix: updated some tests * fix: adapt client to changes * fix: remove obsolote isClosed in UpdateStory * ci: increase no_output_timeout for build
34 lines
764 B
Docker
34 lines
764 B
Docker
FROM node:10-alpine
|
|
|
|
# Install build dependancies.
|
|
RUN apk --no-cache add git python
|
|
|
|
# Create app directory.
|
|
RUN mkdir -p /usr/src/app
|
|
WORKDIR /usr/src/app
|
|
|
|
# Setup the environment for production.
|
|
ENV NODE_ENV production
|
|
|
|
# Bundle application source.
|
|
COPY . /usr/src/app
|
|
|
|
# Store the current git revision.
|
|
ARG REVISION_HASH
|
|
RUN mkdir -p dist/core/common/__generated__ && \
|
|
echo "{\"revision\": \"${REVISION_HASH}\"}" > dist/core/common/__generated__/revision.json
|
|
|
|
# Install build static assets and clear caches.
|
|
RUN NODE_ENV=development npm install && \
|
|
npm run generate && \
|
|
npm run build && \
|
|
npm prune --production
|
|
|
|
# Setup the environment
|
|
ENV PATH /usr/src/app/bin:$PATH
|
|
ENV PORT 5000
|
|
EXPOSE 5000
|
|
ENV NODE_ENV production
|
|
|
|
CMD ["npm", "run", "start"]
|