mirror of
https://gitlab.com/alemaire/buildx.git
synced 2025-01-10 18:43:29 +00:00
19 lines
412 B
Docker
19 lines
412 B
Docker
FROM node:12-alpine
|
|
|
|
RUN mkdir -p /usr/src/app/private
|
|
WORKDIR /usr/src/app
|
|
|
|
COPY . /usr/src/app
|
|
# We need dev deps to build the front end. We don't need Cypress, though.
|
|
RUN NODE_ENV=development CYPRESS_INSTALL_BINARY=0 npm ci && \
|
|
npm run build && \
|
|
npm prune --production && \
|
|
npm cache clean --force
|
|
|
|
# Run the server using production configs.
|
|
ENV NODE_ENV production
|
|
|
|
CMD node server
|
|
|
|
EXPOSE 80
|