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 @@
## Run & Install
```bash
npm install
# or
## or
yarn install
cp config.js.temp config.js
npm start
# or
## or
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.
Please register or to comment