Skip to content

Commit 8752d4b

Browse files
authored
Merge pull request #7 from weslambert/add_docker
Add Dockerfile
2 parents 7a60790 + e5d7b12 commit 8752d4b

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM node:alpine3.10
2+
LABEL author "Wes Lambert, [email protected]"
3+
LABEL description="Dockerised version of Cyberchef server (https://github.com/gchq/CyberChef-server)"
4+
LABEL copyright "Crown Copyright 2020"
5+
LABEL license "Apache-2.0"
6+
COPY . /CyberChef-server
7+
RUN npm cache clean --force && \
8+
npm install /CyberChef-server
9+
ENTRYPOINT ["npm", "--prefix", "/CyberChef-server", "run", "prod"]

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ After using [CyberChef](https://gchq.github.io/CyberChef/) to experiment and fin
3636
- In a browser, navigate to `localhost:3000` to see usage documentation.
3737

3838

39+
### Docker
40+
A Docker image can be built, then run by doing the following:
41+
42+
- `git clone https://github.com/gchq/CyberChef-server`
43+
- `cd CyberChef-server`
44+
- `docker build -t cyberchef-server .`
45+
- `docker run -it --rm --name=cyberchef-server -p 3000:3000 cyberchef-server`
46+
3947

4048
## API overview
4149
> For full documentation of the API, you can find the swagger page hosted at the root url. See [Installing](#Installing) to run the application and browse the docs.
@@ -154,4 +162,4 @@ Response:
154162

155163
## Licencing
156164

157-
CyberChef-server is released under the [Apache 2.0 Licence](https://www.apache.org/licenses/LICENSE-2.0) and is covered by [Crown Copyright](https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/).
165+
CyberChef-server is released under the [Apache 2.0 Licence](https://www.apache.org/licenses/LICENSE-2.0) and is covered by [Crown Copyright](https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/copyright-and-re-use/crown-copyright/).

0 commit comments

Comments
 (0)