8000 Parabens pelo Projeto - Fiz um Dockerfile para ele · Issue #1 · arthurzeras/expenses · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000
Parabens pelo Projeto - Fiz um Dockerfile para ele #1
Open
@jniltinho

Description

@jniltinho

Dockerfile , colocar esse arquivo na Raiz do Projeto

# estágio de compilação
FROM node:10.20-alpine as build-stage
LABEL maintainer="Nilton Oliveira jniltinho@gmail.com"
ENV TZ America/Sao_Paulo

## docker build --no-cache -t expenses .
## docker run -d -p 8080:80 expenses

WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build

# estágio de produção
FROM nginx:stable-alpine as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]

Para fazer o build da imagem docker

docker build --no-cache -t expenses .

Para Rodar a imagem Docker

docker run -d -p 8080:80 expenses

## Acesse http:/localhost:8080/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0