Skip to content
Snippets Groups Projects
Commit 3fdba6b0 authored by benoit-cty's avatar benoit-cty
Browse files

Fix "invalid character error" in container

parent 9117a0fd
Branches
No related tags found
1 merge request!128Docker : fix the error showing up in client
......@@ -88,6 +88,7 @@ build/Release
# Dependency directories
node_modules/
jspm_packages/
build/
# TypeScript v1 declaration files
typings/
......
......@@ -11,6 +11,8 @@ services:
- 9080:9001
volumes:
- .:/opt/leximpact-client
- /opt/leximpact-client/node_modules
- /opt/leximpact-client/build
networks:
leximpact_net:
......
FROM node:12-alpine
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh
FROM node:12
WORKDIR /opt
RUN git clone https://github.com/leximpact/leximpact-client.git
WORKDIR /opt/leximpact-client
COPY package.json .
RUN echo "API_URL=https://api.leximpact.an.fr/" > .env
# Clean just to be sure
RUN rm -rf node_modules build
# Install dependencies
RUN npm update
RUN npm install
# Copy everything
COPY . .
RUN npm install --save-dev jest-cli
RUN npm run test
RUN npm run code:check
RUN npm run build
EXPOSE 9001
CMD ["npm", "run", "dev"]
\ No newline at end of file
#ENTRYPOINT ["watch", "-n", "60", "echo 'Client is in debug...'"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment