<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: ivolkoff</title>
    <description>The latest articles on Forem by ivolkoff (@ivolkoff).</description>
    <link>https://forem.com/ivolkoff</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F365132%2Fb0ea6e41-0dcc-4c91-84d1-0ed9fd78a623.jpeg</url>
      <title>Forem: ivolkoff</title>
      <link>https://forem.com/ivolkoff</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/ivolkoff"/>
    <language>en</language>
    <item>
      <title>Speed docker build up the build by 10X times for frontend applications</title>
      <dc:creator>ivolkoff</dc:creator>
      <pubDate>Wed, 18 Jan 2023 13:12:44 +0000</pubDate>
      <link>https://forem.com/ivolkoff/speed-docker-build-up-the-build-by-10x-times-for-frontend-applications-3i93</link>
      <guid>https://forem.com/ivolkoff/speed-docker-build-up-the-build-by-10x-times-for-frontend-applications-3i93</guid>
      <description>&lt;p&gt;I'm developing on macOS, and my Kubernetes cluster is on linux.&lt;/p&gt;




&lt;p&gt;The configuration before was:&lt;/p&gt;

&lt;p&gt;Dockerfile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FROM node:14.17-alpine as a builder
...
FROM nginx
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I ran the command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker build --platform linux/amd64 -t fe-spa:latest .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The assembly began to take 20 minutes&lt;/p&gt;




&lt;p&gt;I changed the configuration and started doing this:&lt;/p&gt;

&lt;p&gt;Dockerfile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;FROM node:14.17-alpine as a builder
...
FROM --platform linux/amd64 nginx
...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I ran the command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker build -t fe-spa:latest .
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The assembly began to take 2 minutes&lt;/p&gt;




&lt;p&gt;the transfer of the platform selection allowed us to get an increase in speed&lt;/p&gt;

</description>
      <category>docker</category>
      <category>node</category>
    </item>
    <item>
      <title>CSS rendering .deliver in list</title>
      <dc:creator>ivolkoff</dc:creator>
      <pubDate>Sat, 31 Dec 2022 12:24:19 +0000</pubDate>
      <link>https://forem.com/ivolkoff/css-rendering-deliver-in-list-3dp1</link>
      <guid>https://forem.com/ivolkoff/css-rendering-deliver-in-list-3dp1</guid>
      <description>&lt;p&gt;In the project I use a menu component with conditional rendering.&lt;br&gt;
The problem happened in the display of menu item separators, because some entries may not be rendered.&lt;br&gt;
Example 1 is the first state when all menu items are visible.&lt;br&gt;
Example 2 and 3 are the state when some elements are not rendered in the component.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fopoxgcmhjq8lgdjwy72a.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fopoxgcmhjq8lgdjwy72a.png" alt="Image description" width="500" height="493"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I wrote such a selector to hide the line elements.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nc"&gt;.deliver&lt;/span&gt;&lt;span class="nd"&gt;:has&lt;/span&gt;&lt;span class="o"&gt;(+&lt;/span&gt; &lt;span class="nc"&gt;.deliver&lt;/span&gt;&lt;span class="o"&gt;),&lt;/span&gt;
  &lt;span class="nc"&gt;.deliver&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="nc"&gt;.deliver&lt;/span&gt;&lt;span class="nd"&gt;:not&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;&lt;span class="nd"&gt;:has&lt;/span&gt;&lt;span class="o"&gt;(+&lt;/span&gt; &lt;span class="o"&gt;*))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="o"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nt"&gt;style&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Code example &lt;a href="https://codepen.io/ivolkoff/pen/ExpKBvg" rel="noopener noreferrer"&gt;https://codepen.io/ivolkoff/pen/ExpKBvg&lt;/a&gt;&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>watercooler</category>
      <category>learning</category>
      <category>career</category>
    </item>
  </channel>
</rss>
