Skip to content
Snippets Groups Projects
Commit a9b4d138 authored by Benoît Courty's avatar Benoît Courty
Browse files

WIP : Dockerization

parent 39877c99
No related branches found
No related tags found
1 merge request!126Dockerization
PORT=9001
NODE_ENV=development
API_URL=https://api.leximpact.an.fr/
\ No newline at end of file
FROM node:12-alpine
WORKDIR /opt
# TODO : use a multistage build
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh
RUN git clone https://github.com/leximpact/leximpact-client.git
WORKDIR /opt/leximpact-client
COPY .env.dev .env
RUN npm update
RUN npm install
EXPOSE 9001
CMD ["npm", "run", "dev"]
\ No newline at end of file
version: '3.7'
services:
leximpact_client:
build: .
networks:
- leximpact_net
ports:
- published: 9001
target: 9001
networks:
leximpact_net:
name: leximpact_network
\ 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