Commit 4ab52a8e authored by Bryce Dorn's avatar Bryce Dorn 🐘

Merge branch 'docker' into 'master'

Run project locally with Docker

See merge request !1
parents 513567e0 32d2de2c
Pipeline #52792688 passed with stage
in 1 minute and 26 seconds
.git
docker-compose.yml
FROM node:latest
USER node
WORKDIR /home/node
COPY --chown=node:node package.json yarn.lock ./
RUN yarn install
COPY --chown=node:node . ./
RUN yarn build
EXPOSE 1234
CMD ["yarn", "start"]
# GitLab Corners
[gitlab-corners.bryce.io](https://gitlab-corners.bryce.io)
\ No newline at end of file
[gitlab-corners.bryce.io](https://gitlab-corners.bryce.io)
## Running with Docker
You can run `gitlab-corners` locally with [Docker](https://www.docker.com) installed
docker-compose up
open http://127.0.0.1:1234
In order to see changes made you need to rebuild the image as we don't
support mounting volumes yet
docker-compose up --build
open http://127.0.0.1:1234
### Cleanup
Just run
docker-compose down --rmi all --remove-orphans
version: "3"
services:
server:
build: .
ports:
- "1234:1234"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment