Skip to content
Snippets Groups Projects
Commit f0bc9790 authored by rlacko's avatar rlacko
Browse files

Dockerfile

parent bdcdb110
No related branches found
No related tags found
No related merge requests found
FROM node:10-alpine
WORKDIR /opt/app
ENV TZ Europe/Budapest
RUN apk add --no-cache tzdata && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
# Copying application files
COPY ./src ./src
COPY ./public ./public
COPY package.json yarn.lock package-lock.json ./
# Installing dependencies
RUN npm install
# Building the application
RUN npm run build
# Running
EXPOSE 3000
ENTRYPOINT ["npm", "run", "start"]
...@@ -3,12 +3,25 @@ ...@@ -3,12 +3,25 @@
## Run & Install ## Run & Install
```bash ```bash
npm install npm install
# or
## or
yarn install yarn install
cp config.js.temp config.js cp config.js.temp config.js
npm start npm start
# or ## or
yarn start yarn start
``` ```
# Docker
```
sudo docker image build -t kszkepzes-frontend .
sudo docker container run --publish 3000:3000 --name kszkepzes-frontend kszkepzes-frontend
```
If you want to run in detached mode
```
sudo docker container run --publish 3000:3000 --detach --name kszkepzes-frontend kszkepzes-frontend
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment